Let us first convert the measurements into the same unit.
We know that 1 km=1000 m.
⇒5 km=5×1000 m=5000 m
But, 1 m=100 cm.
∴5000 m=5000×100 cm=5,00,000 cm
and
500 m=500×100 cm
=50,000 cm
Also, 50 m=50×100 cm
=5,000 cm.
5 cm<5,000 cm<50,000 cm<5,00,000 cm
∴5 cm<50 m<500 m<5 km