Write down the solution for this math problem: Solve 567 = -3*q + 585 for q.
6