Source TeX:
\cos(\theta)=\dfrac{\text{adj}}{\text{hyp}}=\dfrac{3}{\sqrt{10}}