Let the matrix be \(\begin{pmatrix}a&b\\c&a\end{pmatrix}\) with \(a,b,c\in\{0,1,2\}\): total \(27\) matrices. Determinant \(=a^2-bc\).
Singular when \(a^2=bc\).
\(a=0\): \(bc=0\): \(5\) pairs (b=0: 3 choices of c; c=0 with b=1,2: 2 more).
\(a=1\): \(bc=1\): \((1,1)\) only, 1 pair.
\(a=2\): \(bc=4\): \((2,2)\) only, 1 pair.
Singular \(=5+1+1=7\); non-singular \(=27-7=20\).
Answer: (4) 20