Start by working up how much energy you have stored up in the spring.
Then work out how much of that is going to be converted into gravitational potention energy when you move 4cm and 10deg.
Whatever is left over will go into the kinetic energy of the ball.