Step 1: Write second polynomial below the first one. Making sure like terms are lined up.
$$ \begin{array}{lrrrr} & x^3 & -x^2 & -2x & -12 \\ \color{blue}{ + } & & & 2x & 5 \\ \hline \end{array} $$Step 2: Combine like terms (add each column):
$$ \begin{array}{lrrrr} & x^3 & -x^2 & -2x & -12 \\ \color{blue}{ + } & & & 2x & 5 \\ \hline & x^3 & -x^2 & & -7 \end{array} $$