can I get help with this and can you explain it in a specific way

In this problem we can made an equation that represent the cost of the taxi, so y will be the final cost, and x the number of miles that he rides so the equation will be:
[tex]y=2x+4[/tex]So if he paid 34 dollars, we replace y=34 and solve for x:
[tex]\begin{gathered} 34=2x+4 \\ 34-4=2x \\ \frac{30}{2}=x \\ 15=x \end{gathered}[/tex]that means that he drives 15 miles