A bullet of mass 10g moving horizontally at a speed of 140m/s strikes a block of mass 100g attached to a string like a simple pendulum. The bullet penetrates the block and emerges then on the other side. If the block rises by 80cm, then find the final velocity of bullet.