Question 284369
Birds are smarter than math teachers and will get out of the way.
I would worry more about the trains crashing than the one bird.
Call 911. Arrest the teacher if she knew about this collision or perhaps planned it.

The problem doesn't really say if the trains are travelling in the same direction.
Assuming they are heading towards each on the same track, we still don't know where the bird is or was when the mess began. So we have no idea how far the bird travelled. Was it hatched on one train?
Basically this is a poorly conceived problem.