What is the solution to this math problem?
Solve -2099*g + 1061*g = -1066*g - 504 for g.
-18