Solve this math problem

Solve 512*q + 367*q + 33658 = -60395 for q.
-107