Niles and bob sailed at the same time for the same length of time. Niles’ sailboat traveled 16 miles at a speed of 8 mph, while bob’s motorboat traveled 26 miles at a speed of 13 mph. For how long were Niles and Bob traveling?