Since time is distance over speed, the time (in hours) it takes for the boat to travel $1$ km going upstream is: $$ \frac{1}{v + 8} $$ Likewise, the time needed to go downstream is: $$ \frac{1}{v - 8} $$ So we must solve the equation: $$ \frac{1}{v + 8} = \frac{2}{3} \cdot \frac{1}{v - 8} $$