Two masses are connected by a cord passing over a pulley of radius R and moment of inertia I. Mass A slides on a frictionless surface, while mass B hangs freely. Derive a formula for
(A) the angular momentum of the system about the pulley axis, as a function of the velocity v of the two masses and
(B) the acceleration of the masses.