30x^2y - 20x^2y^2 + 10x^3y^2
The greatest common factor is 10x^2y .....so we have......
10x^2y ( 3 - 2y + xy )