Solution:
we are given that
My friend sets out walking at a speed of 3 miles per hour.
I set out behind her 5 minutes later at 4 miles per hour.
we have been asked to find
For how many minutes will my friend have been walking when I catch up to her?
Let the required time be t then we can write
As we know that

When they meet up then difference of distance traveled becomes zero.
so we can write

Hence the required time is 20 minutes.