The equation that represents your distance from the restaurant is [tex]y=-60x+150[/tex]
Explanation:
The distance covered by your friend is [tex]y=-40x+100[/tex]
where x is the number of hours since your friend left home.
Since, your friend traveled the whole distance, we can find the time taken to travel the whole distance by equating [tex]y=0[/tex]
Thus,
[tex]\begin{array}{r}{40 x=100} \\{x=\frac{100}{40}} \\{x=2.5}\end{array}[/tex]
Thus, the time taken by your friend to travel the whole distance is 2.5 hours.
It is given that, you and your friend take the same time to travel the distance, thus, the time taken by you to cover the distance of 150 miles is 2.5 hours.
To find the speed, let us use the formula [tex]speed=\frac{distance}{time}[/tex]
Substituting the values, in this formula,
[tex]speed=\frac{150}{2.5}=60[/tex]
Thus, the speed is 60 miles.
Hence, the distance covered by you to reach the restaurant is given by
[tex]y=-60x+150[/tex]