First let’s establish a few things, The first car can travel 300 miles with 20 gallons of gas, if 14 gallons of gas costs 49.49 then for ever gallon of gas Sam is paying 3 dollars and 53.5 cents. That means for 20 gallons, Sam will need around 71$ for the entire trip if he uses the first car.