combine the terms in the given polynomial then evaluate for x=3, and y=-1

The given expression is:
[tex]xy+3xy^2-2xy+3x^2y-2xy^2+xy[/tex]Combine like terms
[tex]xy+xy-2xy+3xy^2-2xy^2+3x^2y[/tex]Simplify the resulting expression
[tex]\begin{gathered} 2xy-2xy+3xy^2-2xy^2+3x^2y \\ \\ xy^2+3x^2y \end{gathered}[/tex]Substitute x = 3 and y = -1 into the simplified expression
[tex]\begin{gathered} xy^2+3x^2y \\ \\ 3(-1)^2+3(3)^2(-1) \\ \\ 3(1)+(-27) \\ \\ 3-27 \\ \\ =-24 \end{gathered}[/tex]