There are 24 students in Mr.Hills class. The number of boys and number of girls are both prime numbers. There are 2 more boys then girls. How many boys and how many girls are in each class?

11 and 13. Thank you. We didn't learn prime and composite numbers but still have homework on it.

the only small twin primes are

3,5
5,7
11,13
17,19

which of those pairs add to 24?

To find the number of boys and girls in Mr. Hill's class, we need to first determine the possible combinations of prime numbers where there are exactly 2 more boys than girls. Let's list all the prime numbers less than or equal to 24:

2, 3, 5, 7, 11, 13, 17, 19, 23

Now, we need to find pairs of numbers where one is 2 more than the other. Let's table these combinations:

Girls Boys Difference (Boys - Girls)
-------------------------------------------------
2 4 2
5 7 2
11 13 2

Now, we'll check if any of these combinations add up to 24, the total number of students. Let's calculate:

2 + 4 = 6 (not 24)
5 + 7 = 12 (not 24)
11 + 13 = 24

So, it is possible to have 11 girls and 13 boys in Mr. Hill's class, where the number of girls and boys are both prime numbers, and there are 2 more boys than girls.