2. An 8 g rubber bullet was fired into a 2.5 kg pendulum bob, initially at rest, and bounces off into the opposite direction. It rises 6.0 cm vertically. (elastic case) What is the velocity of the bob after the collision? Use conservation momentum to find the change in velocity of the bullet. Use conservation of Kinetic energy to find initial velocity of bullet and final velocity of the bullet.

I heard that I needed to use the inelastic collision and the conservation of energy equation for number 1.

0.5*mass*initial velocity^2 +mass*gravitational pull* initial height=0.5*mass*final velocity^2 +mass*gravitational pull* final height.

I triedto solve but could not because i did not know the initial velocity of the bullet and the final velocity.