Two particles A and B are thown vertically upward with velocity