A system of two blocks A and B are connected by an inextensiible massless string as shown in figure. The pulley is massless and frictionless. Initially, the system is at rest. A bullet of mass m moving with a velocity u as shown in the figure hits block B and gets embedded into it. Then find out the impulse imparted by tension force to the block of mass 3m, immediately after the collision takes place.