The maximum mileage per gallon for the compact car is determined by taking the first derivative of the given equation and equate to zero. The differentiated form is m's = -0.05 s + 2.45 = 0; s is equal to 49 seconds. substituting this s, m is equal to 30.025 miles/gallon.