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