Solve this math problem

Solve -24*q + 56*q = 524 + 756 for q.
40