Equivalence relation: car travel time-train travel time =0.5 hours+1 hour.
(x-40)/40 - x/60 =0.5+ 1
Solution: x=300
x-40=300-40=260
A: The train road and car road of A and B are 300 km and 260 km respectively.