AMC 8 · 2009 · #23

Grade 4 algebra
systems-of-equationsperfect-squareslinear-equations-two-var guess-and-checksystematic-enumeration ↑ Prerequisites: multi-digit-arithmeticlinear-equations-one-var
📏 Medium solution 💡 3 insights
📘 View easy version →
Problem
A teacher gives every boy a number of jelly beans equal to the number of boys, and every girl a number equal to the number of girls. She starts with 400 jelly beans and has 6 left, so 394 were handed out. There are 2 more boys than girls. How many students are in the class?

Pick an answer.

(A)
26
(B)
28
(C)
30
(D)
32
(E)
34

AMC 8 2009 problem © Mathematical Association of America (MAA AMC). Reproduced for educational use.

How to solve
Strategy Guess and Check

Each answer choice is a total like 28. Once we know the total T, the "boys - girls = 2" condition pins down the split exactly: girls = T22\frac{T-2}{2}, boys = T+22\frac{T+2}{2}. So Tool #6 (Guess and Check) lets us try each choice and see which one makes (boys)² + (girls)² equal 394. Tool #2 (Make a Systematic List) keeps the five trials organized in a clean table so we don't lose track. This avoids setting up a quadratic equation — we just test five small cases.

1STEP 1

Subtract the 6 left over from the 400 she brought: 394 jelly beans were handed out.

400 - 6 = 394
2STEP 2

For any total T, the two-more-boys rule splits it: girls get T22\frac{T-2}{2} and boys get T+22\frac{T+2}{2}.

girls = T22\frac{T - 2}{2}, boys = T+22\frac{T + 2}{2}
3STEP 3

For each answer choice, compute girls, boys, and girls² + boys², then compare each sum to 394.

T & girls & boys & girls² + boys² ; 26 & 12 & 14 & 144 + 196 = 340 ; 28 & 13 & 15 & 169 + 225 = 394 ; 30 & 14 & 16 & 196 + 256 = 452 ; 32 & 15 & 17 & 225 + 289 = 514 ; 34 & 16 & 18 & 256 + 324 = 580
4STEP 4

Only T = 28 makes the sum exactly 394; values jump 340 → 394 → 452, so the match is unique.

169 + 225 = 394 ✓
5STEP 5

The winning row's total, T = 28, is the answer — choice (B), 13 girls and 15 boys.

Total students = 28 → (B)
Answer
28
With 13 girls and 15 boys, the teacher hands out 13 × 13 = 169 jelly beans to the girls and 15 × 15 = 225 to the boys, totaling 169 + 225 = 394. Adding the 6 left over gives 400, matching the starting amount. The boys outnumber the girls by 15 - 13 = 2, as required. Every condition checks out.
💡Key takeaway

You don't need a quadratic equation — with five answer choices and the "2 more boys than girls" rule, Guess and Check with Grade 4 arithmetic finds the answer in one tidy table!