Physics Inertia question


A mass, m is held at the top of an inclined ramp by a thin massless cord. The cord passes around a pulley with moment of inertia, Ip, and radius r, and then around the equator of uniform spherical shell of mass, M and radius R, which is free to rotate about a vertical axis. If the system is released from rest, find the speed of the mass, m when it reaches the bottom of the ramp. The ramp has a vertical height of h, and all surfaces and rotational axes are frictionless. (Hint: consider whether or not energy is conserved as the mass travels down the ramp).