The solution for this problem is:
Work it backwards: spring U = ½kx² = ½ * 4000N/m * (0.10m) ² = 20 J
so the pre-impact of KE = 20 J = ½ * m * v² = ½ * 0.40kg * v²
v = 10 m/s → for the bullet/block.
Now conserve the momentum:
50g * u = 400g * 10m/s
u = 80 m/s is the arrow
velocity