Find the center of gravity of the three-mass system shown in the diagram.