\(A,xy\left(2x^2-3\right)-x^2\left(5xy+y\right)+x^2y\\ =2x^3y-3xy-5x^3y-x^2y+x^2y\\ =\left(2x^3y-5x^3y\right)+\left(-x^2y+x^2y\right)-3xy\\ =-3x^3y-3xy\)
\(B,3xyz\left(y-2\right)-5yz\left(1-y\right)-8z\left(y^2-3\right)\\ =3xy^2z-6xyz-5yz+5y^2z-8y^2z+24z\\ =3xy^2z-6xyz+\left(5y^2z-8y^2z\right)-5yz+24z\\ =3xy^2z-6xyz-3y^2z-5yz+24z\)