A boat first travels downstream for $21$ km then it turns the opposite direction and travels upstream for $4$ km. It repeats again but now it travels downstream for $12$ km then travels upstream for $7$ km. The time it takes for the first travel and second travel is the same. What is the ratio of the boat's downstream speed to its upstream speed?
It is tempting to do $(21-12):(7-4)=3:1$. But is it correct? How can we just subtract the two downstreams 21 with 12, since the time it takes for the first downstream travel for $21$ km might not be the same as the second downstream travel ($12$ km)? I know that we are assuming the water's speed is constant, but how can we explain this working in more details?
Many thanks!