They both expect to reach some distance through the trail, d.
First hiker will travel d-6.
Speed of 3 mph.
Second hiker will travel d-1.
Speed 4 mph.
Time is given as the same for the two to reach same point in the trail.
SPEED TIME DISTANCE
Hiker1 3 (d-6)/3 d-6
Hiker2 4 (d-1)/4 d-1
------Find d and use it with either time expression to find the time.
Amount of time:
-------five hours