Let.... total distance = d = 100
So...80% of 100 = 80 .....so 80 go with 40 mph .... So time taken = 80/40 = 2 hrs
And...rest 20 go with 20 mph...so time taken = 20/20 = 1 hr
So... total time taken = 3 hrs
Now....if drive da same period of time with 40 mph and 20 mph.....fuel will burn in da ratio = 40^2 : 20^2 = 16 : 4 = 4 : 1
Now what dis means is.....per hour....if 40 mph burns 4x fuel...then 20 mph will burn 1x fuel.....
So...he drove 40 mph 2 hrs... If 1 hr of 40 mph burn 4x fuel...then 2 hrs of 40 mph will burn 8x fuel.....and 1 hr of 20 mph drive will burn 1x fuel.....
So.... 8x + 1x = 9x = 45 gallon..... So.... x = 5 gallon = per hour fuel burn in 20 mph....,
Now....for whole drive in 30 mph...time taken = 100/30 = 3.33 hrs
And... if drive da same period of time with 30 mph and 20 mph.....fuel will burn in da ratio = 30^2 : 20^2 = 9 : 4
So...1 hr drive in 20 mph burns = 5 gallon
So... 1 hr drive in 30 mph burns = [ 5 × 9 ] / 4 gallon = 11.25 gallon
So... 3.33 hrs drive in 30 mph will burn = 3.33 × 11.25 ≈ 37.5 gallon ......
! nah id win!