A block of mass m slides along a horizontal friction- less track with speed vm. It collides with a stationary block of mass M. Find an expression for the mini- mum value of vm that will allow the second block to circle the loop-the-loop without falling off if the col- lision is a) perfectly inelastic or b) perfectly elastic?