The momentum in a coliision is conserved, since this is a perfect inelastic collision the balls will stick together after the colission then in this case we have:
where V is the final velocity of the system. Since one ball is moving to the right and the other is moving to the right one of their velocities (the one moving to the right) is positive and the other one is negative, then we have:
Therefore their final speed is zero.