Given that,
Mass of bullet m=25g=0.025kg
Mass of pendulum M=5kg
Vertical displacement h=10cm=0.1m
Now,
Let it strike pendulum with velocity u.
Let final velocity be v
mu=(m+M)v
v = mu(M+m)
v = 0.025×u 5.025
v= u201
Now, using conservation of energy
0−12(M+m)v2=−(M+m)g×h
12(M+m)×u2(201)2=(M+m)×10×0.1
12(5+0.025)×u2(201)2=(5+0.025)
u2=(201)2×2
u=284.2
u=284m/s
Hence, the speed of the bullet is 284 m/s