Yeah, you got a pythagoreean theorem problem here.
1. Two of the sides are given to you already. 2.5km for the dock to the boy and the boy is .6km from the shore (I'm assuming the same side as the dock) You should be able to solve a^2 + b^2 = c^2 with those two variables. Note that the boat is moving in relation to the water. Although the river is moving at 3.1m/s the boys motion is also in relation to the water in this problem so he has a relative speed of 0. So don't worry about their motion to the shore just yet.
2. Once you have the length of side c you know how far the boat must travel to reach the boy. You need to know how much time the boat took to get to him. v=d/t, d=vt, t=d/v
3. Notice the question asks how far away they are from the dock. The dock moves 3.1 seconds upstream in relation to the water that is rushing past it. That will make it closer to the boat and the boy. For every second the boat was moving the dock was moving 3.1 seconds in relation to the water towards them. d=vt. Multiply the docks relative speed by the total time of the boats movement in the water. This gives you the horizontal distance moved by the dock (assuming the rivers motion is on the x-axis and the boy's distance is the y axis)
4. You now have another pythagorean theorem to figure out. Subtract the distance you got from #3 from the starting x distance of 2.5km. This will take into account the rivers speed and give you a new x distance that represents the boats distance on the x-axis from the dock. The y-axis is unchanged.
5. Use the pythagorean theorem to find the distance of the boat from the dock and you will have your answer.
I'm not the best at math so you might want to verify this with someone else. I just saw that nobody helped you with this simple question. They must all have been asleep or watching the supervolcano on discovery channel. Maybe try to finish your homework before sunday night at midnight next time.

I still have homework to do too.
Anyway I hope that helped, but you should know that I happen to live right by the merrimack river. I can look out the window and see it and I don't see any drowning boys out there right now so there is really no need to rescue anyone.
What was the question?
Huck