Answer:
4 m/s
Step-by-step explanation:
It doesn't state it clearly in the problem, but I assume that the shores of the river are parallel and the man reaches the other side perpendicular from where he started (see attached image).
There are an infinite number of ways the swimmer can go from point A to point B, but the shortest time is of course a straight line. We know that the net speed along this line is 3 m/s. We also know the swimmer's speed is 5 m/s. Since the net velocity vector is perpendicular to the river's velocity, we can use Pythagorean theorem.
vᵣ² + (3 m/s)² = (5 m/s)²
vᵣ = 4 m/s
The water in the river flows at a speed of 4 m/s.