A biology class has a total of 36 students. The number of males is 8 more than the number of females. How many males and how many females are in the class?