Step 1: First we have to write polynomials in descending order.
$$ \begin{aligned} P(x) &= x^4-9x^3+8x+12 \\ Q(x) &= x^4-9x^3+8x+12 \\ \end{aligned} $$Step 2: Write second polynomial below the first one. Making sure like terms are lined up.
$$ \begin{array}{lrrrr} & x^4 & -9x^3 & 8x & 12 \\ \color{blue}{ + } & x^4 & -9x^3 & 8x & 12 \\ \hline \end{array} $$Step 3: Combine like terms (add each column):
$$ \begin{array}{lrrrr} & x^4 & -9x^3 & 8x & 12 \\ \color{blue}{ + } & x^4 & -9x^3 & 8x & 12 \\ \hline & 2x^4 & -18x^3 & 16x & 24 \end{array} $$