Daniel B. answered 10/18/21
A retired computer professional to teach math, physics
The short answer is to set up the equations of motion and solve them.
Let
α be the angle of launch,
v be the velocity of launch (unknown),
g be gravitational acceleration,
x(t) be be the horizontal distance after time t,
y(t) be the vertical distance after time t.
The trajectory is a parabola resulting from a combination of two motions:
A straight line due to inertia, which the projectile would follow in the absence of gravity, and
downward fall, which the projectile would suffer in the absence of launch velocity.
The x distance is not affected by gravity, so
x(t) = vtcos(α)
The vertical distance is a combination of upward inertial flight and downward fall
y(t) = vtsin(α) - gt²/2
The projectile will fall back to earth at some time t1 satisfying
y(t1) = 0
So you have two equations
x(t1) = vt1cos(α)
0 = vt1sin(α) - gt1²/2
You know x(t1), α, g, and have only the two unknowns v and t1.
You can solve the two equations for v and t1, and then get the answer to your question by evaluating
y(t1/2)