The tan of an angle in a triangle is equal to for the side lengths. Opposite side is the one found directly across the triangle and the adjacent is the side touching the angle that is not the hypotenuse. This means the tan for Y is 4 over 5 and the tan for Z is 5 over 4.