The solution to the above problem can be as follows:
The velocity of the two buses approaching towards each other = (40 + 40)km/hr
The time taken for the buses to collide = 80km/hr = 1 hour.
The total distance traveled by the bird = 100km/hr * 1 hr = 100 km.