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:
![\begin{gathered} m(x)=-0.04x^2+3.6x-49 \\ (dm)/(dx)=-0.04(2x)+3.6(1)-49(0)=-0.08x+3.6 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/h034ge2i19rc2de8w64metfh4wqbcu9b2g.png)
Now we equal it to 0 and solve for x:
![\begin{gathered} (dm)/(dx)=0 \\ -0.08x+3.6=0 \\ 3.6=0.08x \\ x=(3.6)/(0.08) \\ x=45 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/52kxu15124fwm1n3g0nn2yhfdmal896o55.png)
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):
![\begin{gathered} m(45)=-0.04(45)^2+3.6(45)-49 \\ m(45)=-0.04\cdot2025+162-49 \\ m(45)=-81+162-49 \\ m(45)=32 \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/high-school/j5skjwvzvqo78w0xuyx55b27i7oz5ls009.png)
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.