Solve this math problem

Solve -582 = 2791*q - 2851*q - 2022 for q.
-24