According to conservation of momentum principle,
Pi=Pf
2×4=2×1m2×v2
m2v2=6...(i)
and the coefficient of restitution is,
e=v2−v1u1−u2
Here, u1=4, u2=0, v1=1
∴1=v2−14⇒v2=5 m/s
from (i),
m2×5=6
m2=1.2 kg
Now, Vcm=m1v1+m2v2m1+m2
=2×1+1.2×52+1.2=83.2=x10
∴ x=25