Two trains are approaching each other on a straight track, each travelling at 15 miles per hour. They are initially 60 miles apart when a bee takes off from the front of one train at 40 miles per hour and flies to the second train. The bee then flies back and forth between the approaching trains until the trains meet. How far does the bee travel?