Answer
See solution
Work Step by Step
I left my friend’s house 5 mi east of town and rode my bike east at 4 mi/h for 5 more miles; this took 20 minutes. I then rested and ate a sandwich for 20 minutes and then rode all the way back to town at 4 mi/h.