I got my answer form here: https://web2.0calc.com/questions/my-friend-any-help-is-appreciated
This answer is from CPhill:
At 3 mph....your friend covers 3 / 60 miles per minute
At 4 mph......you cover 4/ 60 miles per minute
So....every minute....you close [ 4 - 3 ]/ 60 = 1/ 60 miles on your friend
And when she has been walking for 5 minutes......she will be 5 * [3 / 60 ] = 15/60 = 1/4 of a mile ahead of you when you start
So......the number of minutes, m, it will take to catch your friend can be found by :
( 1/60) m = 1/4 multiply both sides by 60
m = 60 / 4 = 15 minutes