Niles and Bob sailed at the same time for the same length of time. Niles’ sailboat traveled 56 miles at a speed of 8 mph, while Bob’s motorboat traveled 84 miles at a speed of 12 mph. For how long were Nile’s and Bob traveling?