A motorboat takes passengers between two ports on a river 20 km away. The motorboat maintains the same speed relative to the river both in the upstream and the downstream trips. If the upstream trip takes 1 hour while the downstream trip takes 50 minutes, what is the speed of the river?