m=5,n=-1
x^(m-2)y^2+mx^(m-2)y+nx^3y^(m-3)-2x^(m-3)y+m+n
=x^3y^2+5x^3y-x^3y^2-2x^2y+5-1
=5x^3y-2x^2y+4