Consider the first map. the scale is 1 cm on a map is 10 000 cm (100 m) in real life. Therefore, 50 mm (5 cm) on a map is 500 m in real life.
Consider the second map. 1 cm on a map contains 50 000 cm (500 m) in real life. As we figured out above, the distance between the two points is 500 m in real life. On the second map this will be, therefore, 1 cm (10 mm).