Answer:
(g + 4)(g + 10)
Step-by-step explanation:
Note that 10*4 = 40 (which is the constant in g^2 + 14g + 40) and that 10 + 4 = 14 (which is the coefficient of x in g^2 + 14g + 40).
Thus, g^2 + 14g + 40 factors into (g + 4)(g + 10) (second answer choice).