It is a right triangle because has a right angle(90°)
then we can apply trigonometric ratios
for example if I use tangent
[tex]\tan (\alpha)=\frac{O}{A}[/tex]where alpha is the reference angle, O the opposite side from the angle and A the adjacet side of the angle different to the hypotenuse
if I use y as reference angle, we replace
[tex]\tan (y)=\frac{31}{23}[/tex]then I solve for y
[tex]\begin{gathered} y=\tan ^{-1}(\frac{31}{23}) \\ \\ y=53.43 \end{gathered}[/tex]value of y is 53.43°
if I use x as reference angle, we replace
[tex]\begin{gathered} \tan (x)=\frac{23}{31} \\ \\ x=\tan ^{-1}(\frac{23}{31}) \\ \\ x=36.57 \end{gathered}[/tex]Value of x is 36.57°