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.3m questions
6.9m answers