The masses of blocks A, B, C, and D are 9 kg, 9 kg, 6 kg and 7 kg, respectively. Knowing that a downward force of magnitude 120 N is applied to block D, determine (a) the acceleration of each block, (b) the tension in cord ABC. Neglect the weights of the pulleys and the effect of friction.