Solve this math problem

Solve -1859*g = -4368*g + 1742*g + 66729 for g.
87