Let the rate he swam with no current be
[tex]=x[/tex]The rate against the current will be
[tex]=(x-2)km\text{ /hr}[/tex]The rate with the current will be
[tex]=(x+2)[/tex]Given that the rate of the current is
[tex]2\operatorname{km}\text{ /hr}[/tex]The distance swam against the current is
[tex]=4\operatorname{km}[/tex]The distance swam with the current is
[tex]undefined[/tex]