To determine the initial value in the context of the given equation \( g = 50x + 1000 \), we need to evaluate the equation at \( x = 0 \) (which represents the starting point, or sunrise).
Substituting \( x = 0 \) into the equation:
\[ g = 50(0) + 1000 = 0 + 1000 = 1000 \]
Thus, the initial value of \( g \) (the number of gallons in the swimming pool at sunrise) is 1,000 gallons.