Body A of mass 5kg and body B of mass 3kg are connected by a light string. If the coefficients of friction for A and B are 0.4 and 0.2 respectively, find the acceleration of the system and the tension in the string