To solve the equation \( g^2 = 25 \), we take the square root of both sides.
This gives us:
\[ g = \sqrt{25} \quad \text{or} \quad g = -\sqrt{25} \]
Calculating the square root:
\[ g = 5 \quad \text{or} \quad g = -5 \]
Thus, the solutions for \( g \) are:
\[ g = 5 \quad \text{or} \quad g = -5 \]
So, the final answers are:
\[ g = 5 \quad \text{or} \quad g = -5 \]