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:

Now we can multiply the ratio for a number that give you the 20 minutes so in this case us 4

So after 20 minutes she arrive to the school, now let's find the slope:
we know that the equation is:

and we replace the coordinates so:

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:
