Answer:
The speed of the boat is 7 km/h and thes peed of the current is 5 km/h;
Explanation:
We don't know neither the speed of the boat nor the speed of the current, so let:
speed of the boat = x;
speed of the current = y;
If the boat is travelling with the current we know that those two speed are adding up, therefore we can conclude that:
x + y = 12;
But If the boat is travelling against the current we know that we have to subtract them, therefore:
x - y = 2;
Now we've a system of equations with the same two variables, therefore, by substitution method (or any other method) we can find the variables:

So using the first equation, we get that:

And substituting that x to the second equation we get:

So we can conclude that the speed of the current is 5 km/h.
And now with that answer, using equation 1, we can solve the speed of the boat.
