Kinematics

Two trains, each having a speed of 34 km/h, are headed toward each other on the same straight track. A bird that can fly 58 km/h flies off the front of one train when they are 102 km apart and heads directly for the other train. On reaching the other train it flies directly back to the first train, and so forth.
(a) How many trips can the bird make from one train to the other before the trains crash?
(b) What is the total distance the bird travels?