1) In this kind of question, we're going to deal with a ratio:
2) So, now let's gather the data:
Upstream: 8 miles
Downstream: 12 miles
Speed of the current: 2mph
Boat speed: x
So we can set the following expression:
Note that we actually equate both rational expressions for the boat against the current and the boat with the current.
Thus, the boat speed is 10 mph