A forest ranger travels up a river by boat to collect soil samples. The boat travels at a speed of v miles per hour for a distance of 2 miles. After collecting the samples, the ranger travels the same distance back downstream at a speed of v+2 miles per hour. If the total time taken for the round trip is 3 hours, What is the value of v?