Solve this math problem

Solve -3111 + 7779 = -827*m - 2775 for m.
-9