What is the solution to this math problem?
Solve -9*g - 16*g = 21*g - 782 for g.
17