A block of mass 2kg is joined to a body of mass 1kg. Block is placed on a horizontal table and the string moves over a pulley, which is at the edge of the table. Mass of 1kg is suspended by the string. If table is frictionless then acceleration of block and tension in string are respectively