A math class has a total of 36 students. The number of females is 10 less than the number of males. How many males and how many females are in the class?