Explanation
total distance → 12km
"He cycled 3/8 of the journey before stopping to rest."
1st stop → 3/8 x 12 = 36/8 = 4 4/8 = 4 1/2 km
remaining → 12 - 4 1/2 = 7 1/2 km
He then continued to cycle 5 7/8 km before stopping to have breakfast.
distance left → 7 1/2 - 5 7/8 = 7 4/8 - 5 7/8 = 6 12/8 - 5 7/8 = 1 5/8 km = 1.625 km