clustering factors in a sum



Hi,

I am new to maxima. So I have a beginner question.


consider the expression : 3xa+2ya+5yb+6xb

How can we factorize in order to get :


a.(3x+2y) + b.(6x+5y)

or

x.(3a+6b)+y.(2a+5b)



?Thanks,



Arnaud Megret