Answer
$(g-15)(g-3)$
Work Step by Step
The first term in the expression is $g^{2}$, so we know that there will be a $g$ in each set of parentheses.
Next, you must figure out what two numbers multiply together to get $45$ (the third term), but also add up to -$18$ (the second term).
The two numbers that fit into these parameters are -$15$ and -$3$.
Therefore, one set of parentheses will contain $g-15$ and the other set of parentheses will contain $g-3$.
So, the final answer is $(g-15)(g-3)$.