
Jordan W. answered 01/20/22
C++, Java, Algebra, C#, SQL, Python Tutor
This question needs how long the trip is but all you'd do is take the $2.90/gal and divide it by 22 since the vehicle can go 22 miles off of every gallon and multiply it by the number of miles the trip is and you'll get your answer. Or pretty much this formula:
trip cost = (2.90 / 22) * (number of miles in the trip)
So if the trip is 44 miles you'll say:
(2.90 / 22) * 44
which gives you:
$5.80
Another way to represent this would be:
x = 2.90 * (number of miles of trip / 22)
x --> trip cost