To solve the equation \(8x - 12 = 4x\) for \(x\), we will first isolate \(x\).
- Subtract \(4x\) from both sides:
\[ 8x - 4x - 12 = 0 \]
This simplifies to:
\[ 4x - 12 = 0 \]
- Next, add 12 to both sides:
\[ 4x = 12 \]
- Now, divide both sides by 4:
\[ x = 3 \]
Thus, the distance between the cars is \(\boxed{3}\) miles.