Answer
$(g-5h)(g-7h)$
Work Step by Step
The first question to ask yourself is what two numbers multiply to 35 while adding to -12? -7 and -5 are the two numbers that satisfy this. We need a $g$$\times$$g$ to get $g^2$. Also, we need an $h$$\times$$h$ to get $h^2$. The $h^2$ is connected to the 35 so we know that one $h$ will be connected to the -7 and one $h$ will be connected to the -5. This set up will naturally form to get $-12gh$.