There are 80 cable cars traveling in a circular route between ski resorts A and B, all moving in the same direction. The distance between two adjacent cable cars is the same. Xiaoming, who is sitting in one of the cable cars, encounters an opposing cable car every 15 seconds. How long does it take to travel from A to B?