g: (x+3y)(x-3y+2)
=(x+3y)(x-3y)+2(x+3y)
=x^2-9y^2+2x+6y
h: (x+2y)(x-2y+3)
=(x+2y)(x-2y)+3(x+2y)
=x^2-4y^2+3x+6y
i: (x^2-xy+y^2)(x+y)
=x^3+x^2y-x^2y-xy^2+xy^2+y^3
=x^3+y^3
j: (x+y)(x^2-xy+y^2)=x^3+y^3
k: (5x-2y)(x^2-xy-1)
=5x*x^2-5x*xy-5x-2y*x^2+2y*xy+2y
=5x^3-5x^2y-5x-2x^2y+2xy^2+2y
=5x^3-7x^2y+2xy^2-5x+2y
l: (x^2y^2-xy+y)(x-y)
=x^3y^2-x^2y^3-x^2y^2+xy^2+xy-y^2