What is the solution to this math problem?
Solve 77*q - 1157 + 5044 + 4723 = -2709 for q.
-147