I have taken out size of the gas tank as it isn't relevant to the expected result. I also added an equation that will determine the cost of the trip.