see the attached figure to better understand the problem
In the right triangle of the figure
tan(50)=h/40
h=40*tan(50)
therefore
5.7m questions
7.4m answers