There is a regular bus service between towns A and B, with a bus leaving towns A and B every T minutes. A cyclist moving with a speed of 20 kmh−1 in the direction A to B notices that a bus goes past him every 18mins in his direction and every 6mins in the opposite direction. What is the period T of bus service?