Ragnar leaves his office for his home. He walks towards east. After moving a distance of 15 m, he turns south and walks 20 m. Then he walks 40 m towards the west and further 10 m towards the north. He then turns towards east and walks 30 m. What is the distance between his initial and final position?