Answer:
Your friend is 2.143 blocks from the restaurant.
You are 2.857 blocks from the restaurant.
Step-by-step explanation:
Let t be the time both you and your friend take to walk to the restaurant.
The distance (m) from your building to the restaurant is your walking time t times your speed v1

Similarly the distance (m) from your friend building to the restaurant:

Let b be the length (in m) of a block, the total distance of 5 blocks is 5b





So your friend are 2.143b meters from the restaurant, since each block is b meters long, 2.143b meters would equals to 2.143b/b = 2.143 blocks. And you are 5 - 2.143 = 2.857 blocks from the restaurant.