So... hmm bear in mind, when the boat goes upstream, it goes against the stream, so, if the boat has speed rate of say "b", and the stream has a rate of "r", then the speed going up is b - r, the boat's rate minus the streams, because the stream is subtracting speed as it goes up
going downstream is a bit different, the stream speed is "added" to boat's
so the boat is really going faster, is going b + r
notice, the distance is the same, upstream as well as downstream
thus
solve for "r", to see what the stream's rate is
what about the boat's? well, just plug the value for "r" on either equation and solve for "b"