Manuel traveled 6 hours nonstop to​ Mexico, a total of 278 miles. He took a train part of the​ way, which averaged 50​mph, and then took a bus the remaining​ distance, which averaged 30mph. How long was Manuel on the​ train?