We know that two mechanics worked on a car. The first mechanic charged $115 per hour, and the second mechanic charged $85 per hour. The mechanics worked for a combined total of 20 hours, and together they charged a total of $1850.
To find the answer we must represent the situation with a system of equations.
![\begin{gathered} A+B=20\ldots(1) \\ 115A+85B=1850\ldots(2) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/vl3dk2kl54itzuv15b49lr5u1avgu5za9d.png)
Where,
A: Number of hours that the first mechanic worked
B: Number of hours that the second mechanic worked
First, we must multiply equation 1 by -115
![\begin{gathered} -115(A+B)=-115\cdot20 \\ -115A-115B=-2300\ldots(3) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/2844v4jdz5wy2o2em0ho00p36algly3b92.png)
Second, we must add equations 2 and 3
![\begin{gathered} 115A+85B=1850 \\ -115A-115B=-2300 \\ ---------------- \\ 0-30B=-450\ldots(4) \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/shozey12ue5z3j8xicjd9zo7qidnwk2t3b.png)
Now, we can solve equation 4 for B
![\begin{gathered} -30B=-450 \\ B=(-450)/(-30) \\ B=15 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/m17r13a3fq2cj9o88w87tk68zxdoz62w6e.png)
Then, we must replace the value of B in the equation 1 and finally we must solve for A
![\begin{gathered} A+15=20 \\ A=20-15 \\ A=5 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/ymwz5hgqvqczux04omf4379d9hhhqpbwg7.png)
Answer:
First mechanic: 5 hours
Second mechanic: 15 hours