The equation that represents your distance from the restaurant is

Step-by-step explanation:
The distance covered by your friend is

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

Thus,

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

Substituting the values, in this formula,

Thus, the speed is 60 miles.
Hence, the distance covered by you to reach the restaurant is given by
