Answer
$g^2-9g+14$.
Work Step by Step
The given expression is
$=(g-7)(g-2)$
Distribute $(g-2)$ to each term of $(g-7)$.
$=g(g-2)-7(g-2)$
Use distributive property.
$=g(g)+g(-2)-7(g)-7(-2)$
Multiply.
$=g^2-2g-7g+14$
Combine like terms.
$=g^2-9g+14$
Hence, the product is $g^2-9g+14$.