Write down the solution for this math problem: Solve 498*g = -222*g + 1954 - 366 + 572 for g.
3