
Dan W. answered 08/24/20
Retired middle and elementary teacher specializing in math
Total distance is 280 miles (which could be city, highway, or combination of the two)
City distance is 280 total miles - highway miles
Highway distance is 280 total miles - city miles
Cost will be the distance divided by rate times the cost per gallon, so-
a) Highway cost will be 280 - city miles (if any)/24 times 4.15
b) City cost will be 280 - highway miles (if any)/16 times 4.15