Vani walks from Tree 1 to Tree 2 and then to Tree 3 - covering 335 metres in all. Raj walks from Tree 2 to Tree 3, then to Tree 1, and finally returns to Tree 2 - covering 540 metres in all.