Horizontal distance travelled by the shell in time t is the same as the distance covered by the plane.
i.e., θ = 19.5° with the vertical.
The plane will not be hit by the bullet from the gum if it is flying at a minimum height which is the maximum height attained by the bullet after firing from the gum