Travel Rates Rule, RT=D relating speed, time, distance.
RATE TIME DISTANCE
JOE 6 t+1/3 d
JOHN 8 t d
The situation described gives you two equations in two unknown variables.
You could equate the two equal distances: and solve for t, first.
----------- 1 hour for John to catchup.