Fuel tank capacity: 20 gallons
Average speed: 17 miles per gallon of gas
The number of miles that Danny's truck travels on g gallons of gas is given by the expression:
[tex]M(g)=17g[/tex]The domain of this function is given by:
[tex]Dom:0\le g\le20[/tex]Because the tank capacity is 20 gallons.
For the range, we evaluate the function at the bounds:
[tex]\begin{gathered} M(0)=0 \\ M(20)=20\cdot17=340 \\ \\ Ran:0\leqslant M(g)\le340 \end{gathered}[/tex]