A and B are 5 km apart, and a man goes from A to B at a speed of 3.14 m/s. Meanwhile, a dog goes from A to B at a speed of 9.87 m/s. After reaching B, the dog moves back and forth between B and the man at the same speed until man reaches B.
How many meters has the dog traveled by the time the man reaches B? Keep the answer to two decimal