Write down the solution for this math problem: Solve -171*q - 312 = 140*q - 1245 for q.
3