Answer
$$x^3-x^2-7x+10$$
Work Step by Step
We do these problems like we did with the FOIL method. However, there now may be more than two terms per factor, so we we may not be able to just multiply the first, outer, inner, and last terms together. Instead, we must be sure that all terms within both factors are multiplied by each other. Doing this, we find:
$$ \left(x-2\right)\left(x^2+x-5\right) \\ x^2x+xx-5x-2x^2-2x+2\cdot \:5 \\ x^3-x^2-7x+10$$