Solve this following
Question:

If $\left|\begin{array}{cc}2 x & 5 \\ 8 & x\end{array}\right|=\left|\begin{array}{cc}6 & -2 \\ 7 & 3\end{array}\right|$, write the value of $x$

Solution: