@Gourav
Given acceleration of the particles is g/2=a'
now let acceleration of the lift=a upwards
assume lift at rest and apply psudo force=mass* a to both masses
Let masses as 2m and m
2m>m so 2m will move downward with a'
So 2mg+2ma-T=2ma'=2m(g/2)=mg .....(1)
and similarly for m mass
T-mg-ma=ma'=m(g/2) .....(2)
Solving both we get
a=(g/2)