Let the speed of each bus = v km/h
The distance between the nearest buses plying on either car = vT km...(i)
For buses going from town A to B:
Relative speed of bus in the direction of motion of man = (v - 20)
Buses plying in this direction go past the cyclist after every 18 min. Therefore, separation between the buses
= (v - 20)×(18/60)
From (i), (v - 20)×(18/60) = vT ...(ii)
For buses coming from B to A:
The relative velocity of bus with respect to man = (v + 20) Buses coming from town B past'the cyclist after every 6 min,
∴ (v + 20)×(6/60) = vT ...(iii)
Solving (ii) and (iii), we get\
v = 40 km/h and T = 2/30 h