Q.
If pulleys shown in the diagram are smooth and massless and and are acceleration of blocks of mass and respectively, then

Solution:
For ...(i)
for
...(ii)
for pulley
...(iii)
Using (i), (ii) and (iii)