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

On the last day of school, Mrs. Wonderful gave jelly beans to her class. She gave each boy as many jelly beans as there were boys in the class. She gave each girl as many jelly beans as there were girls in the class. She brought 400400 jelly beans, and when she finished, she had six jelly beans left. There were two more boys than girls in her class. How many students were in her 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.

Try it yourself first — the explanation is most useful after you’ve attempted it.