[tex]xy-3x^2+2x[/tex]
Factor by pulling out the x-term.
[tex]x(y-3x+2)[/tex]
Arrange as we get -
[tex]x(-3x+y+2)[/tex] ----------> Answer