We have the following
Company A:
[tex]A=25+0.6\cdot m[/tex]Company B:
[tex]B=57.50+0.1\cdot m[/tex]Therefore:
[tex]\begin{gathered} 25+0.6\cdot m<57.50+0.1\cdot m \\ 0.6m-0.1m<57.50-25 \\ 0.5m<32.5 \\ m<\frac{32.5}{0.5} \\ m<65 \end{gathered}[/tex]In this case, alla values less than 65 miles, company A would have a lower value, all value greater than 65 miles, company A would be more expensive