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