Chuck can finish a piece of work in 6 hours, Joaquin in 8 hours, and Trevor in 10 hours. After working together for 2 hours, Chuck and Joaquin were joined by Trevor. How long did it take them to finish the work together?