How can I find the appropiate launching angle given different heights? The problem states the following:

A soccer player $\textrm{20.0 m}$ from the goal stands ready to score.
  In the way stands a goalkeeper, $\textrm{1.70 m}$ tall and
  $\textrm{5.0 m}$ out from the goal, whose crossbar is at 
  $\textrm{2.44 m}$ high. The stricker kicks the ball toward the goal at 18
  $\frac{m}{s}$. For what range of angles does the player score a goal
  meaning the ball passes above the goalkeeper but below the crossbar?

What I tried to do is to follow the equations of parabolic motion and I defined them as:
$\textrm{For y:}$
$\textrm{Launching angle:}\,\omega$
$$y=y_{0}+v_{0y}\sin\omega\times t-\frac{1}{2}\times g t^{2}$$
Since what it is being asked is related to the maximum height this is found by knowing the vertex of the parabola or the maximum of the function which I found below:
$$v_{0y}\sin\omega-gt=0$$
$$t=\frac{v_{0y}\sin\omega}{g}$$
Replacing this in the original function would render the maximum $\textrm{y}$:
$$y=y_{0}+v_{0y}\sin\omega\times (\frac{v_{0y}\sin\omega}{g})-\frac{1}{2}\times g (\frac{v_{0y}\sin\omega}{g})^{2}$$
Simplifying:
$$y=y_{0}+\frac{v^{2}_{0y}\sin^{2}\omega}{2g}$$
I used the coordinates origin as $\textrm{(0,0)}$ So when the ball is at the ground being kicked by the soccer player would be:
$$y=0+\frac{v^{2}_{0y}\sin^{2}\omega}{2g}$$
Therefore by replacing the known values $g=9.8\,\frac{m}{s^{2}},\,v=18\,\frac{m}{s}\,\textrm{crossbar height = 2.44 m}$ I calculated the value of omega as follows:
$$\sin^{2}\omega=\frac{2\times9.8\times 2.44}{18^{2}}$$
$$\sin\omega=\sqrt{\frac{2\times9.8 \times 2.44}{18^{2}}}=0.3842$$
$$\omega=\sin^{-1}0.3842\approx 0.3943\,\textrm{rad or}\,22.5940^{\circ}$$
Therefore that would be the maximum angle or the upper boundary of the launch angle from which the ball would be kicked so that it does not fly higher than the crossbar thus to ensure it will score the goal.
The other angle I thought would take into account the height of the goalkeeper, from the data is known as $\textrm{1.7 m}$. By reusing the previous formula I got to:
$$\sin\omega=\sqrt{\frac{2\times9.8 \times 1.7}{18^{2}}}=0.3207$$
$$\omega=\sin^{-1}0.3207\approx 0.3265\,\textrm{rad or}\,18.7044^{\circ}$$
However I dismissed the last result as if such angle is used the goalkeeper would catch the ball.
The other part is the horizontal component. I defined the equation as:
$$x=x_{0}+v_{0x}\cos\omega \times t$$
I figured to use the earlier $\textrm{t}$ and to find the range would meant that it would be twice tha time that was used to achieve the maximum height and that range must be the goal.
Therefore the earlier equation would become into:
$$x=x_{0}+v_{0x}\cos\omega \times 2t$$
$$x=x_{0}+v_{0x}\cos\omega \times (\frac{2v_{0y}\sin\omega}{g})$$
$$x=x_{0}+\frac{2v^{2}_{0y}\sin\omega\cos\omega}{g}$$
$$x=x_{0}+\frac{2v^{2}_{0y}\sin2\omega}{g}$$
By using the data $\textrm{20 m}$ and using $\textrm{coordinates origin at (0,0)}$:
$$x=0+\frac{v^{2}_{0y}\sin2\omega}{g}$$
$$\sin2\omega=\frac{20\times 9.8}{18^{2}}=0.6049$$
$$\omega=\sin^{-1}\frac{0.6049}{2}=0.3073\,\textrm{rad or}\,17.6060^{\circ}$$
Therefore these range of angles would be the ones to score a goal. But none of these are right according to my book. Since it says that the range of angles would be between $20.4^{\circ}$ and $26.57^{\circ}$
What is it the step or the interpretation which I did it wrong?. Can someone show a better method or put me in the right track?.

The initial speed is given as $v_0=18m/s$, 
$$y=y_0+(v_0\sin\omega)t-\frac{1}{2}gt^2$$
for $x$,
$$x=x_0+(v_0\cos\omega)t$$
(note both equations contain $v_0$, not $v_{0x}$ and not $v_{0y}$)
Let's put the player at $x=0m$, so $x_0=0m$, the goal at $x=20m$, and the goalkeeper at $x=15m$.
When does the ball pass by the goalkeeper? When
$$x=(v_0\cos\omega)t=15m$$
$$t=\frac{15m}{v_0\cos\omega}$$
How high is the ball at that time?
$$y=(v_0\sin\omega)\frac{15m}{v_0\cos\omega}-\frac{1}{2}g\left(\frac{15m}{v_0\cos\omega}\right)^2$$
To pass by the goalkeeper,
$$(v_0\sin\omega)\frac{15m}{v_0\cos\omega}-\frac{1}{2}g\left(\frac{15m}{v_0\cos\omega}\right)^2>1.7m$$
When does the ball pass by the goal? When
$$x=(v_0\cos\omega)t=20m$$
$$t=\frac{20m}{v_0\cos\omega}$$
How high is the ball at that time?
$$y=(v_0\sin\omega)\frac{20m}{v_0\cos\omega}-\frac{1}{2}g\left(\frac{20m}{v_0\cos\omega}\right)^2$$
To pass into the goal,
$$(v_0\sin\omega)\frac{20m}{v_0\cos\omega}-\frac{1}{2}g\left(\frac{20m}{v_0\cos\omega}\right)^2<2.44m$$
You can just plot this and you will see that the ball passes over the goalkeeper for angles above 20.4 degrees, but misses the goal for angles above 26.6 degrees:

