To solve this problem we have to state a system of equations and solve it.
Let x and y be the rates charged per hour by each mechanic.
The sum of x and y is 220:
![x+y=220](https://img.qammunity.org/2023/formulas/mathematics/college/3g9dyw208motywar2eitfse66lixnrpkd9.png)
The sum of 20x and 15y is 3875:
![20x+15y=3875](https://img.qammunity.org/2023/formulas/mathematics/college/7h6i3mli5opbnbg8mkohjwsqq0iiznxth3.png)
Solve the system by substitution:
![\begin{gathered} x=220-y \\ 20(220-y)+15y=3875 \\ 4400-20y+15y=3875 \\ -20y+15y=3875-4400 \\ -5y=-525 \\ y=(-525)/(-5) \\ y=105 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/tntznkjqk48dba2sivoibrwx8zneu20c7f.png)
Use the value of y to find x:
![\begin{gathered} x=220-y \\ x=220-105 \\ x=115 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/tpxxidbnnsz16xrf3bb1l8zmqia7od77gm.png)
It means that the rates charged per hour by each mechanic were $115 and $105.