What is the solution to this math problem?
Solve -501 = 13*q - 540 for q.
3