A and B start walking in opposite directions. A walked 5 km, B 6 km. Thereafter both turned to their right and walked 2 km. They turned to right again and walked 3 km, again turned to right and walked 2 km. How mush distant apart are they from each other ?