1. A pedestrian left point $A$ for point $B$. When he had walked 8 km, a second pedestrian set off from point $A$ after him. When the second pedestrian had walked 15 km, the first was halfway through his journey, and both pedestrians arrived at point $B$ at the same time. What is the distance between points $A$ and $B$?