Two block are connected by a string and kept on the frctionless surface as shown above in the figure. Block 2 is pulled by a force of 40 N, which accelerates both the blocks at 3m/s2. Calculate the tension in the string connecting the blocks if mass of both the blocks are same.