Answer
$x^{3}-4x^{2}-7x+10=0$
Work Step by Step
$x=-2$ or $x=1$ or $ x=5\qquad$....get $0$'s on one side.
$x+2=0$ or $x-1=0$ or $ x-5=0\qquad$....Use the principle of zero products (multiplying). The solutions of this equation are $-2,\ 1$ and $5$.
$(x+2)(x-1)(x-5)=0\qquad$...use the FOIL method to multiply.
$(x^{2}-x+2x-2)(x-5)=0\qquad$...combine like terms.
$(x^{2}+x-2)(x-5)=0\qquad$...use the FOIL method to multiply.
$ x^{3}-5x^{2}+x^{2}-5x-2x+10=0\qquad$...combine like terms.
$x^{3}-4x^{2}-7x+10=0$