Conservation of momentum

If the external force on a system is zero, the momentum of the system remains constant i.e., in an isolated system, the total momentum remains conserved.
Suppose A and B are two balls, they have mass m1 and m2 and initial velocities u1 and u2 as shown in above figure before collision. The two bodies collide and force is exerted by each body. There is change in their velocities due to collision.