A center of mass problem

Solution.