To find the length of a diagonal in a rectangle you use the Pythagoras theoren to find the length of the hypotenuse (x) in the right triangle formed by the diagonal length and height of the rectangle:
Pythagoras theorem:
![\begin{gathered} h^2=l^2+l^2 \\ h=\sqrt[]{l^2+l^2} \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/cvbdqldegooaq370k5xzx1h62qvrnv3mew.png)
h is the hypotenuse
l are the legs of the right triangle
![\begin{gathered} x=\sqrt[]{(20in)^2+(15in)^2} \\ \\ x=\sqrt[]{400in^2+225in^2} \\ \\ x=\sqrt[]{625in^2} \\ \\ x=25in \end{gathered}](https://img.qammunity.org/2023/formulas/mathematics/college/5vnkm2aiwhfhctbnxodp4e0vfx3g97zl9r.png)
Then the length of the diagonal is 25 inches