Alright, lets get started.
Suppose first mechanic charges= x
So, second mechanic charges will be = [tex] (125 - x) [/tex] (because total of their rates was 125)
first mechanic worked for 5 hours, and the second mechanic worked for 15 hours and together they charged a total of $1225
Means
[tex] 5 x + 15 (125-x) = 1225 [/tex]
[tex] 5 x + 1875 - 15 x = 1225 [/tex]
[tex] 1875 - 10 x = 1225 [/tex]
Adding 10 x in both sides
[tex] 1875 - 10 x + 10 x = 1225 + 10 x
1875 = 1225 + 10 x [/tex]
Subtracting 1225 from both sides
[tex] 1875 - 1225 = 1225 + 10 x - 1225
650 = 10 x [/tex]
Dividing 10 in both sides
[tex] \frac{650}{10} = \frac{10x}{10} [/tex]
x = 65
For second mecahnics rate = 125 - 65 = 60
Hence The mechanic who worked 5 hours charged $ 65 per hour, the one who worked 15 hours charged $ 60 per hour: Answer
Hope it will help :)