Hello, thank you for taking the time to post your question!
The key on questions like this is to set up an equation based on the information given in the word problem. For this set of information that would mean
5 + 2.50x = 25 if you use “x” to represent the total number of miles driven
Solving that equation for “x” gives:
2.50x = 20
x = 20/2.5 = 8
So the farthest you can get in this scenario is 8 miles
I hope that helps get you moving in the right direction! Feel free to reach out if you have any additional questions beyond that :)