Two identical blocks A and B, connected through a massless string are placed on a frictionless horizontal surface. A bullet having mass 2 times that of a single block, moving with velocity u strikes block B from behind as shown in the figure. If the bullet comes to rest after striking the block, find the impulse on block A due to tension in the string.