This diagram represents the problem
We know that distance = speed*time; D=S*t
Total distance: 156 miles
time: 6 h
Speed1: 33 miles/h
Speed2: 5 miles/h
for interval 1:
for interval 2:
for the whole trip: -Eq 1. Distance
and also: -Eq 2. Time
Now we have a system of 2 equations with 2 unknowns.
Let's solve it!
We can see that he spent 4.5 hours riding the bike and 1.5 h walking