The determinant of a \( 2 \times 2 \) matrix \( \left| \begin{array}{cc} a & b \\ c & d \end{array} \right| \) is calculated as \( ad - bc \).
Applying this to the left side: \( \left| \begin{array}{cc} 2x & 5 \\ 4 & x \end{array} \right| = (2x)(x) - (4)(5) = 2x^2 - 20 \).
For the right side: \( \left| \begin{array}{cc} 3 & 5 \\ 4 & 6 \end{array} \right| = (3)(6) - (4)(5) = 18 - 20 = -2 \).
Equating the two sides: \( 2x^2 - 20 = -2 \).
This simplifies to \( 2x^2 = 18 \), then \( x^2 = 9 \), and finally \( x = \pm 3 \).