10 red (identical),14 blue (identical)
4 persons, each gets exactly 6 pens
To find: the number of ways to distribute
10+14=24=4×6(all pens are used)
Key: fix the red counts ri; then blue is forced
r1+r2+r3+r4=10
bi=6−ri
bi≥0⇒ri≤6
0≤ri≤6,r1+r2+r3+r4=10
non-negative solutions=(310+3)=(313)
(313)=613×12×11=286
Over-counted: need ri≤6, so remove ri≥7
ri′=ri−7≥0
ri′+∑j=irj=10−7=3
(33+3)=(36)=20
2×7=14>10⇒at most one ri≥7
Invalid=4×20=80
N=(313)−4(36)=286−80=206
N=206