Step 1: Read the determinant:
The determinant has the entries \(x, 5\) in the first row and \(x, x\) in the second row. Its value is (first row first entry times second row second entry) minus (first row second entry times second row first entry).
Step 2: Form the equation:
$x \cdot x - 5 \cdot x = 24$, which gives $x^2 - 5x - 24 = 0$.
Step 3: Use the quadratic formula:
For $ax^2 + bx + c = 0$ we have $x = \dfrac{-b \pm \sqrt{b^2 - 4ac}}{2a}$. Here $a = 1,\ b = -5,\ c = -24$.
\[ x = \frac{5 \pm \sqrt{25 + 96}}{2} = \frac{5 \pm \sqrt{121}}{2} = \frac{5 \pm 11}{2} \]
So $x = \dfrac{16}{2} = 8$ or $x = \dfrac{-6}{2} = -3$.
Step 4: Put the values back:
With $x = 8$: $8 \cdot 8 - 5 \cdot 8 = 64 - 40 = 24$. With $x = -3$: $(-3)(-3) - 5(-3) = 9 + 15 = 24$. Both satisfy the condition.
Final Answer:
The required values of $x$ are 8 and $-3$.
\[ \boxed{x = 8,\ -3} \]