Two bodies A and B of mass 5kg and 10kg