Let's draw the tv with the given values.
Note that we will form a right triangle with heigh of h, base of 40 and a hypotenuse of 50.
The Pythagorean Theorem is :
[tex]c^2=a^2+b^2[/tex]where c is the hypotenuse, a and b are the legs of the triangle.
Using the formula above. we will have :
[tex]\begin{gathered} 50^2=40^2+h^2 \\ 2500=1600+h^2 \\ h^2=2500-1600 \\ h^2=900 \\ \sqrt[]{h^2}=\sqrt[]{900} \\ h=30 \end{gathered}[/tex]The answer is 30 inches