Can't draw figures here
Let one swimmer cross the river along the shortest path AB
Time taken = t1

AB=d i.e. River Width
Second swimmer follows quickest path

In time t2 drifting becomes (for 2nd swimmer)

Let t3 be the time for swimmer 2 to walk the distance x to come from C to B then

ATQ t1=t2+t3
I'm avoiding few simple steps
Finally you will get
-1}=3Km/hr\\LaTeX%20Sucks)