If \(P = \begin{pmatrix} 1 & 2 \\ 5 & 1 \end{pmatrix}\) and \(Q =…