Suppose that the speed of the boat without a current is , then the boats speed upstream will be , and downsteam

That means that the times to go upstream and back will be and respectively.

The sum of these we are told is That leads to a quadratic which you should be able to solve. (There turn out to be two answers one of which is