Need help on the level 10 question. Only comment if you know. Please step by step

2xy^2+xy^2+xy-2x
2x(y^2-1)+xy(y+1)
2x(y-1)(y+1)+xy(y+1)
(y+1)(2xy-2x+xy)
(y+1)(3xy-2x)
3xy² + xy - 2x
= x (3y² + y - 2)
= x (3y² + 3y - 2y - 2)
= x {3y (y + 1) - 2 (y + 1)}
= x (y + 1) (3y - 2)
Answer:
[tex]x (y + 1) (3y - 2)[/tex]
Hope you could understand.
If you have any query , feel free to ask.