TeX source:
\mathrm{x}=\frac{40}{\tan (\theta)}=40 \cot (\theta)