Two balls A and B are thrown with speed u and u/2