Problem 1
Explanation:
This is the leg furthest from angle X. Side XY is the adjacent side while XZ is the hypotenuse.
=======================================
Problem 2
Explanation:
The tangent ratio is the opposite over adjacent. With angle X as the reference angle, we will then have ZY = 18 as the opposite side and XY = 24 as the adjacent, so,
tan(angle) = opposite/adjacent
tan(X) = ZY/XY
tan(X) = 18/24
tan(X) = (3*6)/(4*6)
tan(X) = 3/4