write an equation for the linear function that relates the number of miles to the number of gallons of gas

First, let's calculate the slope using points
[tex]\begin{gathered} (0,0) \\ \text{and} \\ (3,60) \end{gathered}[/tex]This way,
[tex]m=\frac{60-0}{3-0}\Rightarrow m=20[/tex]Now, using this slope, point (0, 0) and the slope-point form,
[tex]y-0=20(x-0)\Rightarrow y=20x[/tex]We get that the equation is y = 20x