What is the value of x? Show me how you got that answer

Answer:
30
Step-by-step explanation:
a right triangle is 90° so
76+(x-6)=90°
-76 -76
(x-6)=24
+6 +6
x=30