TeX source:
\left |A \right |=\left| \begin{matrix} 1 & 2 & 1\ \\ -3 & 2 & -5\ \\ 1 & 2 & -a \ \end{matrix} \right | = -2a-10-6-2+10-6a = -8a-8