Given that block of mass m1 = 3kg and mass m2 = 2kg are present with initial velcities, u1 and u2 equals to 0 as there are at rest.
A bullet of mass m=0.02 kg strikes with the block and embeds into the second block.
After this, speed of block 1 is v1= 2m/s and speed of bullet+block2 is v2= 5m/s
According to conservation of momentum,
Here, u is the initial velocity of bullet,
Substituting the values, we get
Thus, the initial speed of bullet is 805 m/s