To find side $ a $ use formula:
$$ d_1^2 + d_2^2 = 4 \cdot a^2 $$After substituting $ d_1 = 8 $ and $ d_2 = 4 $ we have:
$$ 8^2 + 4^2 = 4 \cdot a^2 $$ $$ 64 + 16 = 4 \cdot a^2 $$ $$ 4 \cdot a^2 = 80 $$ $$ a^2 = \frac{ 80 }{ 4 } $$ $$ a^2 = 20 $$ $$ a = \sqrt{ 20 } $$$$ a = 2 \sqrt{ 5 } $$