Fuel efficiency is a separate constant for each car.
MILES per GALLON is the unit for fuel efficiency in the example.
, fuel efficincy, distance, volume
You could use two variables, but just one variable is possible and the work may be easier.
FUEL EFFICIENCY VOLUME DISTANCE
firstcar x 25 25x
secondcar 60-x 40 40(60-x)
sum 60 1875
Solve this: