Solve this math problem

Solve 0 = 36*m - 1162*m - 83*m + 47151 for m.
39