Solve this math problem

Solve 24*r + 40 = 14*r for r.
-4