A boat takes 2 hours to travel downstream a river from port A to port B, and 3 hours to return to port A. Another boat takes a total of 6 hours to travel from port B to port A and return to port B . If the speeds of the boats and the river are constant, then the time, in hours, taken by the slower boat to travel from port A to port B is