Please help me

A 15 g bullet strikes and embeds in a 3 kg block suspended at the end of a 1.1 m string. After the collision the string rises to a maximum angle of 23 degrees to the vertical. Find:
a) The speed of the bullet.
b) the percentage loss in kinetic energy due to the collision.