Solve this following
Question:

If $\left|\begin{array}{cc}2 x & x+3 \\ 2(x+1) & x+1\end{array}\right|=\left|\begin{array}{cc}1 & 5 \\ 3 & 3\end{array}\right|$, write the value of $x$.

Solution: