Let us consider the conservation of momentum law. Before the impact the total momentum was
p1=mava+mbvb=0.100kg⋅va+0.400kg⋅0,p1=0.100kg⋅va.
After the impact the total momentum is
p2=(ma+mb)⋅vtot=0.500kg⋅3.0m/s=1.50kg⋅m/s.
Since p1=p2, va=0.100kgp2=0.100kg1.50kg⋅m/s=15m/s.
Comments