Solve this math problem

Solve 85*m = 59*m + 58*m - 1440 for m.
45