We know that after 1 hour of driving, Katie had 6.75 gallons of gas. Also, after 6 hours of driving, she had 1.5 gallons left.
We can write these values as coordinate points, on the form:
Thus, the phrase: "after 1 hour of driving, Katie had 6.75 gallons of gas." can be represented as the point:
[tex](1,6.75)[/tex]And: "After 6 hours of driving, there was only 1.5 gallons left" will have the point:
[tex](6,1.5)[/tex]With this in mind, we can find the slope of a linear function that passes through those two points. Then,
[tex]m=\frac{y_2-y_1}{x_2-x_1}=\frac{1.5-6.75}{6-1}=\frac{-5.25}{5}=-1.05[/tex]Thus, the slope is -1.05.
Now, we will write a linear equation that relates g and h. As we already have the slope, we can use it to find the y-intercept as:
[tex]\begin{gathered} y=mx+b \\ g=mh+b\text{ Writing it with the variables g and h.} \\ 1.5=(-1.05)(6)+b \\ 1.5+6.3=b \\ 7.8=b \end{gathered}[/tex]This means that an equation for g in terms of h is given by:
[tex]g=-1.05h+7.8[/tex]For this part, we will use the linear equation we obtained for getting how gas she will have left after driving for 3 hours. As such, the value of h will be 3, and we replace on the function to obtain:
[tex]\begin{gathered} g=-1.05(3)+7.8 \\ =-3.15+7.8 \\ =4.65 \end{gathered}[/tex]This means that Katie will have 4.65 gallons left after driving for 3 hours.