A boat moves at a speed of 15 km/h in still water. The river it is traveling in flows at a rate of 3 km/h downstream. What is the velocity of the boat if it travels downstream? What is the velocity of the boat if it travels upstream?