To find side $ a $ use formula:
$$ d_1^2 + d_2^2 = 4 \cdot a^2 $$After substituting $ d_1 = 40 $ and $ d_2 = 15 $ we have:
$$ 40^2 + 15^2 = 4 \cdot a^2 $$ $$ 1600 + 225 = 4 \cdot a^2 $$ $$ 4 \cdot a^2 = 1825 $$ $$ a^2 = \frac{ 1825 }{ 4 } $$ $$ a^2 = \frac{ 1825 }{ 4 } $$ $$ a = \sqrt{ \frac{ 1825 }{ 4 } } $$$$ a = \frac{ 5 \sqrt{ 73}}{ 2 } $$