Finding an invertible matrix P and some matrix C Find an invertible matrix $P$ and a matrix $C$ of the form 
$C=\begin{pmatrix}a & -b\\b & a\end{pmatrix}$
such that the given matrix $A$ has the form $A = PCP^{-1}$
$A=\begin{pmatrix}5 & -2\\1 & 3\end{pmatrix}$
The first thing i tried to do was to find the eigenvectors of matrix $A$ and i got these vectors (which i glued together to get matrix $P$ and  $P^{-1}$)
$P=\begin{pmatrix}1+ i& 1-i\\1 & 1\end{pmatrix}$
$P^{-1}=\begin{pmatrix}\frac{1}{2i} & \frac{-1+i}{2i}\\-\frac{1}{2i} & \frac{1+i}{2i}\end{pmatrix}$
Im not sure how to find the matrix $C$, i thought at first i could plug in the eigenvalues in the $C$ matrix, but i don't think that is what they problem i asking me to do.
Any help will be appreciated

Per this question, $A$ has eigenvalues $4\pm i$, so it is similar to a matrix of the form $$C=\begin{bmatrix}4&-1\\1&4\end{bmatrix}.$$ This answer shows how to construct an appropriate basis without computing any eigenvalues explicitly. Note that the resulting matrix in the question has the opposite signs from what we want on the $\beta$’s in our matrix, but we can flip the signs by taking $\mathbf v_2=\frac1\beta B\mathbf v_1$.  
Following this method, we have $$B = \begin{bmatrix}5&-2\\1&3\end{bmatrix} - \begin{bmatrix}4&0\\0&4\end{bmatrix} = \begin{bmatrix}1&-2\\1&-1\end{bmatrix}.$$ Taking $\mathbf v_1=(1,0)^T$, we have $\mathbf v_2=(1,1)^T$, therefore $$P = \begin{bmatrix}1&1\\0&1\end{bmatrix}, P^{-1}=\begin{bmatrix}1&-1\\0&1\end{bmatrix}.$$  
Since you’ve gone to the trouble of finding eigenvectors of $A$, the second part of the linked question suggests another way to find $P$. Since $A$ is real, then for any complex vector $\mathbf v$, $$A(\Re\mathbf v) = \frac12A(\mathbf v+\bar{\mathbf v}) = \frac12(A\mathbf v+A\bar{\mathbf v}) = \frac12(A\mathbf v+\overline{A\mathbf v}) = \Re(A\mathbf v)$$ and similarly $A(\Im\mathbf v)=\Im(A\mathbf v)$. Let $\mathbf v_r$ and $\mathbf v_i$ be linearly independent real vectors such that $\mathbf v_r+i\mathbf v_i$ is an eigenvector of $\alpha-i\beta$. (Proving that this is always possible is a relatively simple, but useful exercise.) Then $$A\mathbf v_r = \Re[(\alpha-i\beta)(\mathbf v_r+i\mathbf v_i)] = \alpha\mathbf v_r+\beta\mathbf v_i$$ and $$A\mathbf v_i = \Im[(\alpha-i\beta)(\mathbf v_r+i\mathbf v_i)] = \alpha\mathbf v_i-\beta\mathbf v_r.$$ Setting $P=\begin{bmatrix}\mathbf v_r&\mathbf v_i\end{bmatrix}$ and $J=\small{\begin{bmatrix}0&-1\\1&0\end{bmatrix}}$, we can write these as $$\begin{align}A\mathbf v_r &= P(\alpha I+\beta J)P^{-1}\mathbf v_r \\ A\mathbf v_i &= P(\alpha I+\beta J)P^{-1}\mathbf v_i\end{align}$$ and since $\mathbf v_r$ and $\mathbf v_i$ are linearly independent, this holds for all $\mathbf v$, therefore $A=P(\alpha I+\beta J)P^{-1}$. Note that this is consistent with the first method since from the expression for $A\mathbf v_r$ we obtain $\mathbf v_i = \frac1\beta(A-\alpha I)\mathbf v_r$.  
For your matrix, you’ve found that $(1-i,1)^T$ is an eigenvector of $4-i$. This splits into real and imaginary parts $(1,1)^T$ and $(-1,0)^T$, respectively, which gives $P=\small{\begin{bmatrix}1&-1\\1&0\end{bmatrix}}$.
