For ease of calculation, we arbitrarily assumed the total distance was 30 km, with each third being 10 km.
Let's consider that he traveled 1 hour at 10 km/h, 1/2 hour at 20 km/h, and only 10 minutes at 60 km/h.
The fact that Vm is 18 km/h is consistent with the average speed/time