Answer
$6g^{3}+11g^{2}-31g+14$
Work Step by Step
$\left[\begin{array}{lllllllll}
& 3g^{2} & -5g & +2 & & & & & \\
& & 2g & +7 & & & & & \\
-- & -- & -- & -- & & & & & \\
& 21g^{2} & -35g & +14 & \text{multiply by }+7 & & & & \\
6g^{3} & -10g^{2} & 4g & & \text{multiply by } 2g & & & & \\
-- & -- & -- & -- & \text{add like terms } & & & & \\
6g^{3} & 11g^{2} & -31g & +14 & & & & &
\end{array}\right]$
Answer: $6g^{3}+11g^{2}-31g+14$