Clearly the cyclist moves both ways at a speed of 12 km/hr.
The boat sailor moves downstream = (10+4)i.e.,14 km/hr and upstream = (10-4)i.e., 6 km/hr.
So,average speed of the boat sailor=(2*14*6/14+6)km/hr =42/5 km/hr=8.4 km/hr.
Since the average speed of the cyclist is greater ,he will return to A first.