Question: Equate the coefficients

I have 2 equations for example

A xyz+B xy^2z^2 +C x^2yz^2+D xyz^2 +E z+ F   =   G xy+H xy^2+M x^2y+P

I need to equate the coefficients..  Now by inspection equating like powers of x and y

G=Az+Dz^2

H=Bz^2

M=Cz^2

P=Ez+F

How can I get  Maple to do this?

 

Please Wait...