Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Fix the number of pencils purchased and calculate the number of ways to buy pens.
Sum up the number of ways to buy pens for each amount of pencils purchased to get the answer.