Another boat in a current The water in a river moves south at $5 \mathrm{km} / \mathrm{hr.}$ If a motorboat is traveling due east at a speed of $40 \mathrm{km} / \mathrm{hr}$ relative to the water, determine the speed of the boat relative to the shore.