# Projectile Motion, get velocity and angle knowing distance and max height [closed]

I have been trying to figure out how to solve it.

I know how to get the velocity by the distance and how to get the max height.

Distance: $$d = V_0^2 \cdot \sin(2\cdot\alpha)/g$$

Max height: $$h_{max} = V_0^2 \sin(\alpha)^2/(2\cdot g)$$

so using the $$h_{max}$$ to substitute $$V_0^2$$ I think would be: $$V_0^2 = \frac{h_{max}}{\frac{\sin(\alpha)^2}{2\cdot g}}$$

so if I substitute this on the distance equation, I think it would be: $$d = \frac{h_{max}}{\frac{\sin(\alpha)^2}{2\cdot g}} \cdot \frac {\sin(2 \cdot\alpha)}{g}$$

But I don't know how to solve the $$\sin$$ to get the angle and even I don't know if this equation is ok.

For example: I want a max height = 8 meters and a distance 5 meters, I would like to know what angle I have to use, with that angle I can get the force I need.