Solve this math problem

Solve 254*m + 5426 = 56*m - 2494 for m.
-40