Nicole did an aerobics and a yoga class for a total of 1 hour and 10 minutes. The yoga class was 30 minutes longer than the aerobics class. How long was each class?