A gun is fired with angle of elevation 30°. What is the muzzle speed if the maximum height of the shell is 484 m? g=gravity (9.8)

What is the initial velocity?

My instructor gave us a hint:

v_0 is initial velocity.

At max height vertical velocity = 0. This gives v_0 sin(alpha) - gt = 0.

Vertical distance = -0.5 gt^2 + v_0 sin(alpha).

Find v_0 from the above two equation.

So I set those two equations equal to each other since they both equal zero. I'm not sure if I can do that. So my initial velocities cancelled out, I solved for t and got sqrt(2). I plugged that back into the vertical velocity and got v_0 = 28. I then plugged it back into the other equation to check it, but didn't get zero, I got 4.06.

I'm pretty lost.