When there is no traffic, it takes Rina 4 hours to get from Boston to New York. Once, Rina started her trip to New York at a speed of 60 mph, but after 2 1/3 hours of driving she stopped for 40 minutes. She had to drive at a speed of 45 mph for the rest of her trip. How long was her trip?