What is the solution to this math problem?
Solve 183*g + 22359 = 10*g + 31009 for g.
50