d = rt, so t = d/r
6 = 24/(r-3) + 24/(r+3)
6r2 - 54 = 24r + 72 + 24r - 72
6r2 - 48r - 54 = 0
6(x + 1)(x - 9) = 0
x + 1 = 0
x = -1
We can't have a negative speed.
x - 9 = 0
x = 9
Let's check...
6 = 24/(9-3) + 24/(9+3)
6 = 24/6 + 24/12
6 = 4 +:2
6 = 6
Check! The boat moves at 9 mph.