Q. Let $A =\begin{pmatrix}2 & -2 \\ 1 & -1\end{pmatrix}$ and $B =\begin{pmatrix}-1 & 2 \\ -1 & 2\end{pmatrix}$. Then the number of elements in the set $\left\{( n , m ): n , m \in\{1,2, \ldots ., 10\}\right.$ and $\left.nA ^{ n }+ mB ^{ m }= I \right\}$ is____
Solution: