In a class of 47 students, the number of males is 7 less than twice the number of females. How many females and how many males are there in the class?