For first one-third of distance
Distance covered $= \frac{x}{3} \,km$
Speed $= 10\,km\, h^{-1}.$
The time taken for the journey, $t_{1} = \frac{x/3}{10} h = \frac{x}{30} h$
For the next one-third of distance :
Distance covered $= \frac{x}{3} km$
Speed $= 20\, km\, h^{-1}.$
The time taken for travel is $t_{2} = \frac{x/3}{20} h = \frac{x}{60} h$
For the last one-third of distance :
Distance covered $= \frac{x}{3} \,km$
Speed $= 60 \,km\, h^{-1}.$
The time taken for travel is $t_{3} = \frac{x/3}{60} h = \frac{x}{180} h$
$\therefore\quad$ Average Speed $= \frac{total \,distance}{total\, time} = \frac{x}{\frac{x}{30}+\frac{x}{60}+\frac{x}{180}}$
$= \frac{180x}{10x} = 18\, km\, h^{-1}$