So I need to solve $\begin{pmatrix} 1 &2\\ 1 &2 \end{pmatrix}X=\begin{pmatrix} -1 & -5\\ -1 &-5 \end{pmatrix}$. I took $X=\begin{pmatrix} a &b \\ c& d \end{pmatrix}$ and I got that $a+2c=-1$ and $b+2d=-5$. What do I do now or do you have any method to solve this and find values for $a,b,c,d$?
P.S. Determinants are $0$ so you can not use the inverse.
You're correct that $a + 2c = -1$ and that $b + 2d = -5$. This gives 2 (independent) equations in 4 unknowns, so we can expect $4 - 2 = 2$ degrees of freedom in the final answer.
Note then that $a + 2c = -1 \iff a = -1-2c \,$ and also $\,b + 2d = -5 \iff b = -5-2d$, so: $$\begin{pmatrix} 1 & 2 \\ 1 & 2 \end{pmatrix} X = \begin{pmatrix}-1 & -5 \\ -1 & -5 \end{pmatrix} \iff X = \begin{pmatrix} -1 - 2c & - 5 - 2d \\ c & d \end{pmatrix}$$
That is, this equation will be solved by any such $X$ in this form.