Alright, lets get started.
Suppose first mechanic charges= x
So, second mechanic charges will be =
(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
![5 x + 15 (125-x) = 1225](https://img.qammunity.org/2019/formulas/mathematics/high-school/hinfkyxklick5abhobgylk14fz1297q3hq.png)
![5 x + 1875 - 15 x = 1225](https://img.qammunity.org/2019/formulas/mathematics/high-school/b16mgsv9kpoax3yopekfl701svyemo9chb.png)
![1875 - 10 x = 1225](https://img.qammunity.org/2019/formulas/mathematics/high-school/bfipl0wjx1qsp0swe3t0o82sx7wb82jlby.png)
Adding 10 x in both sides
![image](https://img.qammunity.org/2019/formulas/mathematics/high-school/9gd76azgeq7f0lgmf8skgn3tmgu0oa5gf4.png)
Subtracting 1225 from both sides
![image](https://img.qammunity.org/2019/formulas/mathematics/high-school/ctev7ltchahptqns6b3vliu1i9xxekcj2b.png)
Dividing 10 in both sides
![(650)/(10) = (10x)/(10)](https://img.qammunity.org/2019/formulas/mathematics/high-school/3t1gtgqpnl9ndltw7lujsai179hhvmg1ya.png)
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 :)