A man weighing 60 kg is standing on a flat boat so that he is at a distance of 10 m from the shore. The boat weighs 20 kg and there is no friction between it and the water. If the man walks 4 m relative to the boat towards the shore and stops, then how far is the man from the shore?