\(P=x^3+x^2y-5x^2-x^2y-xy^2+5xy+3\left(x+y\right)+2000\\ =x^2\left(x+y-5\right)-xy\left(x+y-5\right)+3\left(x+y-5\right)+2015\\ =x^2\left(5-5\right)-xy\left(5-5\right)+3\left(5-5\right)+2015\\ =2015\)
`P = x^3 + x^2 - 5x^2 - x^2y + xy^2 + 5xy + 3(x+y) + 2000`
`P = x^2(x+y) - (x+y)x^2 - xy(x+y) + (x+y)xy + 3(x+y) + 2000`
`P = 0 + 0 + 3.5 + 2000`
`P = 2015`