Answer
$4$
Work Step by Step
As per question, we have $(a+2)^2=36$
or, $a^2+4+4a-36=0$
or, $a^2+4a-32=0$
or, $a^2+8a-4a-32=0$
Thus, $(a-4)(a+8)=0$
This implies $a=-8,4$
Since, the side of a square cannot be negative, thus our answer is: $4$