Two mechanics worked on a car.
Now, mechanic 1 has spent 5 hours working on the car.
Mechanic 2 has spent 15 hours working on the car.
Lets say mechanic 1 charged 'x' dollars per hour and mechanic 2 charged 'y' dollars per hour.
So,
that is our first equation ( 1 ):
And,
that is our second equation ( 2 ):
Using the two equations we can solve for 'x' and 'y', using our first equation we get:
![x+3y=315](https://img.qammunity.org/2019/formulas/mathematics/high-school/p4c5xwnh978mipow8g93pdex806uld4888.png)
![x+y=155](https://img.qammunity.org/2019/formulas/mathematics/high-school/f4khpslya6gk9j3u73s9u58ie04cp4wc8g.png)
On solving for 'x' and 'y' we get:
![y=80](https://img.qammunity.org/2019/formulas/mathematics/high-school/1hhoryc9y3rfxo9tomaj2sqc9x9zqhlmr1.png)
and putting the value of 'y' in the equation 2 we get:
![x=155-80=75](https://img.qammunity.org/2019/formulas/mathematics/high-school/khk1cap7eeu7vt2jpnx8nbwv5bq8efrwyy.png)
As mentioned earlier, 'x' represents the charge that mechanic 1 charged per hour and 'y' represents the charge that mechanic 2 charged per hour.
We have
and
.
So, the mechanic 1 charged $75 per hour and mechanic 2 charged $80 per hour.