Mai spends 7 and 3/5 hours in school each day. Her lunch period is 30 minutes long, and she spends a total of 42 minutes switching rooms between classes. The rest of her day is spent in 6 classes that are all the same length. How long is each class?