The side lengths of a right triangle are ;
Apply Pythagorean theorem:
(Substitute 27 for a and 40 for c)
(Evaluate powers:
)
(Subtract 729 from each side)
(Subtract:
)
(Take square root each side)
(Cancel square and root)
The unknown length of .