Algebra, Equations & Number Patterns

Answer & solution
Official answer: D
Givens and goal
A student must take between 60 and 70 credits in total, including exactly 15 core credits, exactly 20 project credits, and at least 10 specialization credits. Find the maximum elective credits; the choices are 10, 15, 20 and 25.
Approach
Write the total-credit inequality and minimize the compulsory non-elective allocation.
Step-by-step solution
1. Let s be specialization credits and e elective credits. The total is 15+20+s+e=35+s+e, with s≥10 and 60≤35+s+e≤70.
2. The upper constraint gives e≤35−s. Since s≥10, it follows that e≤25. Increasing specialization above its minimum only reduces the capacity available for electives.
3. To show the bound is attainable, choose s=10 and e=25. The total becomes 15+20+10+25=70, which satisfies both the minimum 60 and maximum 70.
4. Therefore the maximum is 25 credits, option D. Using the minimum total 60 would give 15 elective credits at s=10, but the question asks for the largest allowed elective allocation, not the minimum needed to graduate.