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