Use common factoring to factor each polynomial.

2x^2y-xy^2+xy

take out xy

xy (2x - y +1)