Initially length of string is, l1+l2=l (constant)
Let pulley and block are displaced by distance x1 and x2 respectively.
(l1+x1+x1)+(l2−x2)=l⇒2x1=x2
block will be displaced by 2x .
Differentiating twice we get acceleration of pulley (a1) and acceleration of block(a2) as,
2a1=a2
Now, for pulley,
F−2T=0⇒T=F2
For block,
a2=Tm=F2m
a1=F4m.