Answer :
To solve the problem it is necessary to apply the kinematic equations of linear descriptive motion. With the components of speed we can find both time and distance that separates them. The two components given are:
[tex]v_x = 30cos40\°[/tex]
[tex]v_y = 30sin40\°[/tex]
Applying the vertical displacement equation we have to
[tex]y = \frac{1}{2}at^2 +v_yt +y_1[/tex]
Replacing we have,
[tex]18= \frac{1}{2}(-9.81)t^2+30sin40t+2[/tex]
Solving for t,
[tex]t = 1.189s[/tex]
Through the horizontal component we can find the displacement which is given as,
[tex]d = v_x (t)[/tex]
[tex]d = 30 cos40 (1.189)[/tex]
[tex]d = 27.324m[/tex]
Therefore the correct answer is B.