\(A=3x^2y+xyz-xy^2-\left(3xyz+4x^2y-5xy^2\right)\)
\(A=3x^2y+xyz-xy^2-3xyz-4x^2y+5xy^2\)
\(=\left(3x^2y-4x^2y\right)+\left(xyz-3xyz\right)+\left(5xy^2-xy^2\right)\)
\(=-x^2y-2xyz+4xy^2\)
\(=-xy\left(y+2z\right)+4xy^2\)
\(=-xy.4y+4xy^2\)
\(=-4xy^2+4xy^2=0\)