Stuck on this question:
Let $$A=\begin{pmatrix} 2&1\\ -1&-1 \end{pmatrix}$$$$B=\begin{pmatrix} -2&5\\ -1&3 \end{pmatrix}$$$$C=\begin{pmatrix} 5&2\\ 4&1 \end{pmatrix}$$ Show that A is similar to B, but that A is not similar to C.
I can do the second part of the question as $det(A)\neq\det(C)$, therefore as similar matrices have the same determinant $A\nsim C$. I also understand that I need to find $P$ such that $AP=PB$ for the first part but have no idea how I would go about finding it.Would anyone be able to provide an answer and explanation of the method used?
Thanks
Edit:Had a look at the solution from the textbook, it gives $$P=\begin{pmatrix} 2&3\\ 1&1 \end{pmatrix}$$