The relative speed of the cars = 27 + 18 = 45 km/h
When the two cars meet together, time t is given as
t = distance between cars/relative speed of cars
= 36/(27+18)
t = 4/5 h
Therefore, distance covered by the bird in 4/5 hours = (36)(4/5) = 28.8 km