A mass \(M\) is in static equilibrium on a massless vertical spring as shown. A ball of mass m dropped from certain height sticks to the mass \(M\) after colliding with it. The oscillations they perform reach to height 'a' above original level of scales and depth \(b\) below it.
a) Find time period of oscillations.
b) What is the height above the initial level from which the mass m was dropped?
Please post your detailed solution.