Rewrite the expression g^4 + 12g^2 + 9 - 10g^2 + 8 in the form c(g^2 + p)^2 + q. What is q?
(1)(g2 +1)2 +16 = g4 + 2g2 +17