18. Liangliang started from location A at 8:00 AM to go to location B, with a speed of 8 kilometers per hour. He rested for 1 hour in between, and arrived at location B at noon 12:00. Therefore, the distance between location A and location B is ( ) kilometers.
A. 16
B. 24
C. 32
D. 40
【Solution】Solution: 12:00 - 8:00 $=4$ hours
$$
\begin{array}{l}
8 \times(4-1) \\
=8 \times 3 \\
=24 \text { (km) }
\end{array}
$$

Answer: The distance between location A and location B is 24 km.
Therefore, the correct choice is: $B$.