when there is no external force acting on a system then net momentum will be conserved.before collision the net momentum is mv-mv=0 then just after the collision the momentum will be 2mv1. as 2mv1=mv-mv(conservation of momentum) new velocity will be 0