Explanation:
Since every single mile it descends the same amount (which is 500ft), that means it's linear, so we'll use that they gave us, the h(x) = mx+b
To find m, we use the following equation

to find b, we have to find out the starting point. luckily they gave it to us, which is 4,000ft. B = 4000
Now every 500 feet, we go down 1 mile
Which means at 1000 feet, we go down 2 miles
500 and 1000 can be our y1 and y2
1 and 2 can be our x1 and x2

Now that we have our m and b, we just put it together

A negative was placed before the 500 because they are descending, not ascending.