Math problem: Solve 817*g = 5761 - 31088 for g.
What is the solution?
-31