8. (12 points) Two cars, A and B, start from points A and B respectively at the same time, moving towards each other at a constant speed. When car A has passed 12 kilometers beyond the midpoint of AB, the two cars meet. If car A starts 10 minutes later than car B, the two cars meet exactly at the midpoint of AB, and when car A reaches point B, car B is still 20 kilometers away from point A. The distance between points A and B is $\qquad$ kilometers.
【Solution】Solution: Let the total length be $s$
$$
\begin{array}{c}
\left(\frac{s}{2}+12\right):\left(\frac{s}{2}-12\right)=\frac{s}{2}: \quad\left(\frac{s}{2}-20\right) \\
\frac{s+24}{2}: \frac{s-24}{2}=\frac{s}{2}: \frac{s-40}{2} \\
(s+24):(s-24)=s:(s-40) \\
(s+24) \times(s-40)=(s-24) \times s \\
s^{2}-16 s-960=s^{2}-24 s \\
24 s-16 s=960 \\
8 s=960 \\
s=120
\end{array}
$$

Answer: The distance between $A$ and $B$ is 120 kilometers.
Therefore, the answer is: 120.