Here is a second way to find the boat's speed, using the ratio of times instead of solving simultaneous equations.
The distance is the same both ways, 30 km, so speed is inversely proportional to time. Time downstream to time upstream is $2 : 6$, which simplifies to $1 : 3$. So speed downstream to speed upstream is $3 : 1$.
Let the boat speed be $x$ and the stream speed be $y$. Downstream speed is $x + y$ and upstream speed is $x - y$. From the ratio, $\frac{x+y}{x-y} = 3$, so $x + y = 3x - 3y$, which gives $4y = 2x$, or $x = 2y$.
We also know the downstream speed directly: $x + y = 30/2 = 15$. Since $x = 2y$, this becomes $2y + y = 15$, so $3y = 15$ and $y = 5$. Then $x = 2y = 10$.
Let's summarize:
Both methods agree, so option D, 10 km/h, is correct.