As shown in the figure, a truck travels from to at a speed of 50 km/h, while at the same time, delivery person A and delivery person B set out from to travel to and respectively, with both traveling at the same speed. If A travels 3 km before meeting the truck, and 12 minutes later, the truck and B arrive at simultaneously, then what is the distance between cities and in kilometers?