Let V be the speed of the bus running between towns A and B.
Speed of the cyclist, v = 20 km/h
Relative speed of the bus moving in the direction of the cyclist = V – v = (V – 20) km/h
The bus went past the cyclist every 18 min i.e.,18/60 h (when he moves in the direction of the bus).
Distance covered by the bus = (V-20)18/60km...............(i)
Since one bus leaves after every T minutes, the distance travelled by the bus will be equal to:

Both equations (i) and (ii) are equal.

Relative speed of the bus moving in the opposite direction of the cyclist = (V + 20) km/h
Time taken by the bus to go past the cyclist =6 min=6/60 h

From equations (iii) and (iv), we get

Substituting the value of V in equation (iv), we get
