The man moves with a speed of 1.5 m/sec for 4 sec. So distance traveled by the man during this time period is 6 m. Let us assume the shore is to our left when he moves towards the shore there will be a relative displacement of the boat towards the right. So the relative displacement of boat is = md/(M+m), where m is mass of man ,and d is the distance he walks towards the shore and M is the mass of boat .after substituting the values given we get the relative displacement to be1.8m.so the total distance from the shore is = initial distance from the shore – distance walked by the man + relative displacement of boat = 20-6+1.8=15.8m
So that the option A is correct