Two particles A and B initially at rest