Linear Momentum and the center of mass

On a horizontal air track, a glider of mass m carries a post shaped like an inverted "L". The post supports a small dense sphere, also of mass m, hanging just above the top of the glider on a cord of length L. The glider and sphere are initially at rest with the cord vertical. A constant horizontal force of magnitude F is applied to the glider, moving it through displacement x1; then the force is removed. During the time interval when the force is applied, the sphere moves through a displacement with a horizontal component of x2.
(a) Find the horizontal component of the velocity of the center of mass of the glider-sphere system when the force is removed.
(b) After the force is removed, the glider continues to move on the track and the sphere swings back and forth, both without friction. Find an expression for the largest angle the cord makes with the vertical.

At first, I naively took the total energy of the system to be

E = F*x1 = 0.5(2m)v^2 ,

Then it occurred to me that the displacement x2 of the sphere does some work as well, due to the presence of the fictitious force (measured in the glider's frame of reference). This also means that it rises to a height above it's original position, and work done against gravity becomes mgh. What really killed me was when I realized that the shift in the position has to affect the system's motion in some way, since the center of mass remains constant.

Would really appreciate it if someone enlightens me, for I now have no idea where to start.