Let 'x' be the rate per hour of the first mechanic and 'y' the rate per hour of the second mechanic.
It is said that the sum of those rates is $165 and that in 20 hours the first mechanic, and 15 hours the second mechanic, together they got $2950.
We can write a system of equations with this information:
We can use the substitution method to solve this system. Let's clear y in the second equation
And replace this into the first equation
And solve for x:
With x = 95 se replace into the second equation we cleared before and find y:
The rate charged per hour by the first mechanic was $95 and by the second mechanic was $70