She start at a dirtance of 8 miles from the school, and after 10 minutes she is 4 miles from the school. so that means that in 10 minutes she advance halve of the way so we can find the ratio that will be:
[tex]\frac{10}{4}=\frac{5}{2}[/tex]Now we can multiply the ratio for a number that give you the 20 minutes so in this case us 4
[tex]\frac{5\cdot4}{2\cdot4}=\frac{20}{8}[/tex]So after 20 minutes she arrive to the school, now let's find the slope:
we know that the equation is:
[tex]m=\frac{y_2-y_1}{x_2-x_1}[/tex]and we replace the coordinates so:
[tex]m=\frac{0-4}{20-10}=-\frac{4}{10}=-\frac{2}{5}[/tex]now the starting point or the intercection with the y coordinate will be (0,8) because he start at 0 miles and the time is 0 so the final equation will be:
[tex]y=-\frac{2}{5}x+8[/tex]