A person is walking from Mali to Pali, which lies to its north-east. What is the distance between Mali and Pali?
I. When the person has covered $\frac{1}{3}$ the distance, he is 3 km east and 1 km north of Mali.
II. When the person has covered $\frac{2}{3}$ the distance, he is 6 km east and 2 km north of Mali.