ChallengeMedium
Challenge · Medium problem
Towns and are km apart. Two cars leave simultaneously toward each other, one at km/h and the other at km/h. At the same instant a bird leaves the first car and flies at km/h to the second car, then back, continuing until the cars meet. What total distance (in km) does the bird fly?