A block of mass m is initially lying on a wedge of mass M with an angle of inclination theta