Good morning! I would like to receive some help on how to answer this question. What I’m looking for is detailed explanation because I simply don’t understand where to even start. Thank you

Given -
30 miles/gallon for the first 45 mile
33 miles/gallon for the next 99 mile
56 miles for the final leg.
Average = 28 miles/gallon
Total gas = 10 gallons