Victoria has a boat that can move at a speed of 20km/h in still water. She rides 140km downstream in the same time it takes 35km upstream. What is the speed of the river?

time = distance/speed

If the river's speed is r,
140/(20+r) = 35/(20-r)
r=12

check:
140/32 = 35/8