All the entries of the matrix \(\begin{pmatrix} 5 & 2 \\ c & -7 \end{pmatrix}\)
and its inverse are integers. Find all possible values of c.
The possible values of c are 8 and -10.