Okay, so we need equations for
denoting the vertical initial velocity and
denoting the initial horizontal velocity.
Using trigonometry we can easily see that
Now, we need to work out the time that the ball is in the air, this is easier to do with the horizontal motion, as there is no acceleration.
Time before the ball hits the wall in the horzontal direction:
Now, we know how high the ball needs to be at this point, so we can look at the vertical motion.
Using one of the suvat equations:
substituting in u, a, s and t from above:
Now substituting in
and
Solve for