A right triangle has side length 8,15, and 17 as shown below.
![A right triangle has side length 815 and 17 as shown below class=](https://us-static.z-dn.net/files/d32/5a83f3995150e261d1d436deef598c36.jpg)
In any right triangle, you have the following properties: if you want to know the cosine of an angle, it is given by the ratio between the adjacent leg and the hypothenuse.
Similarly, the sine of an angle it is given by the ratio between the opposite leg and the hypothenuse.
So, if you focus on the angle X, the adjacent leg is 15 units long, and the opposite leg is 8 units long. The hypothenuse is 17 units long.
So, we have
[tex] \cos(x) = \dfrac{\text{adjacent}}{\text{hypothenuse}} = \dfrac{15}{17} [/tex]
[tex] \sin(x) = \dfrac{\text{opposite}}{\text{hypothenuse}} = \dfrac{8}{17} [/tex]
To compute the tangent, simply use its definition:
[tex] \tan(x) = \dfrac{\sin(x)}{\cos(x)} = \dfrac{\frac{8}{17}}{\frac{15}{17}} = \dfrac{8}{15} [/tex]