Step 1: Write second polynomial below the first one. Making sure like terms are lined up.
$$ \begin{array}{lrrrrrr} & 7x^5 & -10x^4 & & 3x^2 & & 17 \\ \color{red}{ - } & -2x^5 & & -8x^3 & & 2x & -2 \\ \hline \end{array} $$Step 2: Change ALL the signs in the second row.
$$ \begin{array}{lrrrrrr} & 7x^5 & -10x^4 & & 3x^2 & & 17 \\ \color{red}{ - } & 2x^5 & & 8x^3 & & -2x & 2 \\ \hline \end{array} $$Step 3: Combine like terms (add each column):
$$ \begin{array}{lrrrrrr} & 7x^5 & -10x^4 & & 3x^2 & & 17 \\ \color{red}{ - } & 2x^5 & & 8x^3 & & -2x & 2 \\ \hline & 5x^5 & -10x^4 & -8x^3 & 3x^2 & 2x & 15 \end{array} $$