What is the law of conservation of momentum?
if two elastic balls collide horizontally (no other forces affecting at that direction) then the momentum is conserved between them
so if one ball loses speed the other ball will gain speed so the above relation is applied
as in this examples even though the first ball stopped, its momentum was transmitted to the other ball.
I hope this helps.