A bullet of mass 20 g moving horizontally at a speed of 300 m/s is fired into a wooden block of mass 500 g suspended by a long string.The bullet crosses the block and emerges on the other side.If the centre of mass of the block rises through a height of 20.0 cm,find the speed of the bullet as it emerges from the block.