how to solve problems on boats and streams