What is the solution to this math problem?
Solve 1309 - 5648 - 25647 = 178*q + 460*q for q.
-47