What is the solution to this math problem?
Solve -4470 - 3165 = -500*g + 365 for g.
16