Two blocks of mass 2 kg and 4 kg are kept in contact with each other on a smooth horizontal surface. A horizontal force of 12 N is applied on the first block due to which they move with certain constant acceleration. Calculate the force between the blocks.