3xy² + xy - 2x
- Take x common from all the terms.
= x (3y² + y - 2)
- Now, split the middle term of the bracketed portion.
= x (3y² + 3y - 2y - 2)
= x {3y (y + 1) - 2 (y + 1)}
= x (y + 1) (3y - 2)
Answer:

Hope you could understand.
If you have any query , feel free to ask.