Clearly, the cyclist moves both ways at a speed of 12 km/hr.
So, average speed of the cyclist = 12 km/hr.
Average speed = (2x14x6/14+6) km/hr
= 42/5 kmph
= 8.4 kmph
Since the average speed of the cyclist is greater, he will return to A first.