The ball A is reached and it makes head on collision with B. The masses of A and B are same 1. After collision