I'm wanting to know if my working for this question seems reasonable, or if there is a better way to do it. The question is as follows. A final exam has 12 questions, the marks for which must sum to 200. Each question should be worth at least 10 marks but less than 25. Moreover, the marks for each question should be divisible by 5. In how many ways can the marks be assigned?
I first setup this equation:
x1 + x2 + .. + x12 = 200, 10 <= xi < 25
Which becomes:
x1 + x2 + .. + x12 = 80, 0 <= xi <= 14
Now, to get the solution to this equation I find the number of solutions where x is unbounded, then remove solutions where 1,2,3 .. x's exceed 14. Something like (sorry, I'm not familiar enough with LaTeX to use it yet):
C(91, 80) - C(12, 1) * C(76, 15) - ... C(12,5) * C(16, 5)
I then consider the limitation that the marks must be divisible by 5. In the set from {0, .. 14} there are only 3 numbers divisible by 5: 0, 5, 10. As such I then multiplied my result above by 3/15 to get the number of solutions.
Now, my question. Is this working even correct? If not where did I go wrong and what would be the correct way to do it?