A massless string connects three blocks as shown below. A force of 24 N acts on the system. What is the acceleration of the blocks and the tension in the rope attached to the 2 kg block?