The parts of trip are in two different parts.
140 minutes is 120 minutes plus 20 minutes, which is 2 hours 30 minutes
( or, two and one-third hours )
SPEEDS TIME hour DISTANCE
part1 r 5/r 5
part2 r-2 6/(r-2) 6
TOTAL
You see what equation you can form?
.
.
.