An object of mass 2 kg is attached to a string to form a pendulum. It is initially displaced to a height of 10 cm above the lowest point and let go. It hits another object of mass 1 kg at its lowest point. Given that the collision is elastic, find the distance traveled by the 1-kg object before it comes to rest due to the friction of the surface, which is constant and has a magnitude of 5 N.