Mass of wedge as shown in figure is M and that of the block is m. Neglecting friction at all the places and mass of the pulley, calculate acceleration of the wedge. Thread is inextensible.