When the shot is fired, the plane has travelled a horizontal distance
. (You can picture this by drawing a diagram.)
The time taken for the bullet to rise to height
is given by
I think the idea is to solve for
algebraically and show that
(horizontal distance travelled by bullet)
(distance travelled by plane after passing gun).