In an algebra class, there are 10 less than twice as many boys as girls. If the total number of students is 38, how many boys and girls are there in class?