Let the acceleration of the two bodies is a.
Then tension in the string is given by:
3(g−a)=2(g+a)=T
3g−3a=2g+2a
5a=g
a=g5
a=105
a=2m/s2
Distance travelled by each mass is,
s=0×t+12×2×52
s=25m
Now the distance of new centre of mass is,
s′=3×25+2×(−25)3+2
s′=5m
Thus, new centre of mass will shift 5m in downward direction.