The formula for the hypotenuse of a right triangle is A squared + B square = C squared.
When you know A then it is C = the square roof of A squared and B squared.
Plugging in your numbers (18x18) 324 + (18x18) 324 = square root of 648 = 25.4558"
Point 4588 inches converted to fractional inches is done by multiplying the decimal by 16 for 16ths.
So enter into your calculator point 4558 times 16 = 7.2928 rounding down we see that it 7/16's.
Your brace length on the layout line is 25 7/16" long. If I have done it correctly.
Jim Rogers