A 45-45-90 triangle would have legs that are of the same length (x) and the hypotenuse would be x times the square root of 2.
We can make an equation and solve for x:
[tex]x \sqrt{2} = 18 [/tex]
Divide both sides by sqrt{2} to have (approximately):
x = 12.73