Rewrite the expression g^4 + 18g^2 + 24 in the form c(g^2 + p)^2 + q. What is q?
g4 + 18g2 + 24
= g4 + 18g2 + 81 - 81 + 24
= (g2 + 9)2 - 57
q = -57