Hello i need help with this please , I was studying but I can’t get this right

Solution:
Given a right triangle;
To find the value of z, we apply the theorem that the sum of angles in a triangle is 180°,
Shown below to evaluate z, since it is a right angle, one of the angles is 90°
[tex]52\degree+z\degree+90\degree=180\degree[/tex]Collect like terms and solve for z
[tex]\begin{gathered} z\degree+142\degree=180\degree \\ z\degree=180\degree-142\degree \\ z\degree=38\degree \end{gathered}[/tex]Hence, the value of z is 38°