recall your d =rt, or distance = rate * time
so... when the boat is going upstream, is going against the current, hmmmm let's say the boat has a speed rate of "r", we know the current has a rate of 2, so... .if the boat is going against the current, its actual speed is not really "r", but "r - 2", since the current is taking away speed from it
now...going downstream, is going with the current, is not really going "r" fast either, is going "r + 2"
let us notice, the time for upstream travel, is really the same time for the downtream travel, let's say hmm it took "t" long
thus

solve for "r"