5. (15%) Fig. 2 shows two uniform, solid cylinders of radius $R$ and total mass $2M$ connected along their common axis by a short, light rod and rest on a horizontal tabletop. A frictionless ring at the center of the rod is attached to a spring with force constant $k$; the other end of the spring is fixed on the wall. The cylinders are pulled to the left a distance $x$, stretching the spring, and then released from rest. Due to friction between the tabletop and the cylinders, the cylinders roll without slipping as they oscillate. Find the period of the oscillation.