Can you solve for X inside the correct code for question four?

Answer
CIAD
Step-by-step explanation
The Pythagorean theorem states:
[tex]c^2=a^2+b^2[/tex]where a and b are the legs and c is the hypotenuse of a right triangle.
Applying this theorem to triangle 1:
[tex]\begin{gathered} x^2=77^2+36^2 \\ x^2=5929+1296 \\ x^2=7225 \\ x=\sqrt{7225} \\ x=85 \end{gathered}[/tex]Then, the first letter is C.
Applying the theorem to triangle 2:
[tex]\begin{gathered} x^2=39^2+80^2 \\ x^2=1521+6400 \\ x^2=7921 \\ x=\sqrt{7921} \\ x=89 \end{gathered}[/tex]Then, the second letter is I.
Applying the theorem to triangle 3:
[tex]\begin{gathered} x^2=25^2+100^2 \\ x^2=625+10000 \\ x^2=10625 \\ x=\sqrt{10625} \\ x=103.08 \end{gathered}[/tex]Then, the third letter is A.
Applying the theorem to triangle 4:
[tex]\begin{gathered} x^2=17^2+52^2 \\ x^2=289+2704 \\ x^2=2993 \\ x=\sqrt{2993} \\ x=54.71 \end{gathered}[/tex]Then, the fourth letter is D.