a: A+B
=x^2y+x^3-xy^2+2-x^3-xy^2+x^2y+7
=2x^2y-2xy^2+9
A-B
=x^3+x^2y-xy^2+2+x^3+xy^2-x^2y-7
=2x^3-5
b: A+B
=x^2y+3/2xy^3-11/2x^3y^2+x^3-1/2xy^3+x^2y-9/2x^3y^2
=2x^2y+xy^3-10x^3y^2+x^3
A-B
=x^2y+3/2xy^3-11/2x^3y^2+x^3+1/2xy^3-x^2y+9/2x^3y^2
=2xy^3-x^3y^2+x^3