Solve this math problem

Solve 291*q - 54270 = 1736*q + 565*q for q.
-27