What we see: a Data Sufficiency counting question. Six kids stand in a row, and no boy may stand at either end. We need one exact number of lineups, so we need to know how many girls there are.
Step 1. Find what decides the count.
What we see: the two end spots must go to girls; the four middle spots can go to anyone left.
What it means: if there are \(g\) girls, the ends can be filled in \(g \times (g - 1)\) ways (any girl on the left, any other girl on the right), and the 4 kids left fill the middle in \(4! = 24\) ways.
What we do and why: total = \(g(g-1) \times 24\). Knowing \(g\) answers the question.
Step 2. Statement 1 alone.
What we see: there are 4 girls.
What it means: ends: \(4 \times 3 = 12\) ways; middle: 24 ways; total \(12 \times 24 = 288\).
What we do and why: one number. Sufficient.
Step 3. Statement 2 alone.
What we see: the ends can be filled in 12 ways.
What it means: \(g(g-1) = 12\). The only whole number that works is \(g = 4\) (\(4 \times 3 = 12\)). The middle always holds the remaining 4 kids in 24 ways.
What we do and why: we can even skip finding \(g\): total = \(12 \times 24 = 288\). Sufficient.
The trap: thinking Statement 2 is not enough because it does not name the number of girls. It still fixes the end count, and the middle count never changes.
Takeaway: fill the restricted spots first; the rest is just the factorial of whoever is left.
Answer: D