MathLabs

Problem 1

Three problems AA, BB, and CC were given on a mathematics olympiad. All 25 students solved at least one of these problems. The number of students who solved BB and not AA is twice the number of students who solved CC and not AA. The number of students who solved only AA is greater by 1 than the number of students who, along with AA, solved at least one other problem. Among the students who solved only one problem, half solved AA. How many students solved only BB?
Step 6 of 6: Select the unique non-negative integer solution
In plain words

Non-negativity of the remaining group size dd is what turns an equation with infinitely many real solutions into exactly one admissible integer solution.

b=6,c=2b=6,\quad c=2
Detailed analysis

For 4b+c=264b+c=26 with b,c≥0b,c\ge 0 integers and d=b−2c≥0d=b-2c\ge0: b=5b=5 forces c=6c=6 but then d=5−12<0d=5-12<0, impossible; b≥7b\ge7 forces c<0c<0, also impossible; only b=6,c=2b=6,c=2 gives a valid d=2≥0d=2\ge0. Hence exactly 66 students solved only BB.