Answer:
As collision is elastic,thus we can use conservation of momentum equation
mA=0.2 kg
(vB)1=0 m/s.......................as it is on rest before collision
(vA)1=4 m/s
(vA)2=-1 m/s
(vB)2=2 m/s
using equation
(mA*vA+mB*vB)1= (mA*vA+mB*vB)2
Where 1 and 2 represents before and after collision
(0.2*4)+(mB*0)=(0.2*-1)+(mB*2)
0.8=-0.2+(2mB)
mass of object B=mB=0.3 Kg