Answer
$g(g^3+24g^2+12g+4)$
Work Step by Step
Find the greatest common factor. Find the prime factors of each term and multiply the factors that are common to all the terms.
$g^4=\underline g\times g\times g\times g$
$24g^3=3\times2\times2\times2\times\underline g\times g\times g$
$12g^2=3\times2\times2\times\underline g\times g$
$4g=2\times2\times\underline g$
GCF $=g$
Factor the GCF out of each term. Use the factors from each term that are not part of the GCF.
$g^4+24g^3+12g^2+4g=g(g^3+24g^2+12g+4)$