Inactive Tutor answered 06/01/20
The height of the target is d sinφ. This quantity must equal the maximum height of the trajectory parabola, since the projectile reaches the target at the top of the parabola. From kinematics, the maximum height of the trajectory is
H = v02sin2θ / (2g)
d sinφ = v02sin2θ / (2g)
The vertical component of the initial velocity is v0sinθ.
d sinφ = (v0sinθ)2 / (2g)
v0sinθ = √(2gd sinφ)