A block of mass 4kg lies on a smooth horizontal table. A light string tied to it passes over a pulley at the edge of the table and holds a block of mass 2kg, which hangs freely, as shown in the figure. The pulley is a uniform disc of mass 4kg, and the string does not slip on it. Taking g=10m/s2, the acceleration of the blocks, and the tensions in the horizontal and vertical parts of the string, are