To find Z, use the Pythagorean theorem which is a^2 + b^2 = c^2 where c is the hypotenuse so,
40^2 = 24^2 + z^2
1600 = 576 + z^2
1024 = z^2
z = radical 1024, z = 32
To find the sides, we use sin, cos, or tan.
To find y we can use sin, which is opposite over adjacent, so sin y = 24/40 = 0.6, then we use a calculator and use sin^-1 (0.6) which will give you 37 degrees,
Now to find x we can use tan, which is opposite over adjacent, so tan x = 32/24 =1.33 and we use a calculator and use tan-1 (1.33) which gives you 53 degrees, So..
X= 53
Y= 37
Z= 32
Hope this helped!