Block A of mass m and block B of mass 2m are placed on a fixed triangular wedge by means of a massless, in extensible string and a frictionless pulley as shown in figure. The wedge is inclined at 45º to the horizontal on both sides. The coefficient of friction between block A and the wedge is 2/3 and that between block B and the wedge is 1/3. If the system A and B is released from rest, find

(i) the acceleration of A,
(ii) tension in the string, and
(iii) the magnitude and direction of the force of friction acting on A