Two boxes with masses m1 and m2 are connected by a massless cord passing over a light pulley, as in the figure.

Two boxes with masses m1 and m2 are connected by a massless cord passing over a light pulley, as in the figure. Mass m1 is connected to a light spring with force constant k, initially in equilibrium. When the system is released from rest, the mass m1 moves upward stretching the spring and m2 downward a distance h with respect to the initial position A. Consider the pulley as a cylinder of radius R and mass M.M R B