We need to convert all the quantities to a common unit, say metre inorder to compare.
We know,
1 cm=10 mm, 1 m=100 cm, and 1 km=1000 m
0.0004 km=0.0004 x 1000=0.4 m
36 cm=36100=0.36 m
5030 mm=503010 x 100=5.03 m
Therefore, 5.03 m>3.8 m>0.4 m>0.36 m
That is, 5030 mm>3.8 m>0.0004 km>36 cm