We have to find at what speed will the car get the maximum mileage.
This can be done calculating the first derivative for m(x) in respect to x:
Now we equal it to 0 and solve for x:
As x = 45 is within the valid interval (between 20 and 70), we know it is a valid solution.
The maximum mileage happens at 45 miles per hour.
We can now calculate this gas mileage as m(45):
The maximum mileage is 32 miles per gallon.
We can see it in a graph as:
Answer: the maximum mileage happens at a speed of 45 miles per hour, and the maximum mileage is 32 miles per gallon.