This is a two equations with two unknows type problem. If the first mechanic's rate is r1 and the second is r2, the equations are
r1 + r2 = 140 and
20 r1 + 15 r2 = 2525
This set of equations can be solved via the method of substitution.
The result is r1 = 85 and r2 = 55