\(a^2=8+2\sqrt{\left(4+\sqrt{10+2\sqrt{5}}\right)\left(4-\sqrt{10+2\sqrt{5}}\right)}=8+2\sqrt{16-10-2\sqrt{5}}=8+2\sqrt{5-2\sqrt{5}+1}=8+2\sqrt{\left(\sqrt{5}+1\right)^2}=8+2\left(\sqrt{5}+1\right)=5+2\sqrt{5}+1=\left(\sqrt{5}+1\right)^2\Rightarrow a=\sqrt{5}+1\Rightarrow A=a^2-2a+12=\left(a-1\right)^2+11=5+11=16\)