You baked 6 indistinguishable snickerdoodle cookies and 8 indistinguishable chocolate chip cookies. Compute the number of ways to arrange 7 of those cookies into a straight line.
My try: First, identify the number of snickerdoodle cookies, denoted as 𝑠, and the number of chocolate chip cookies, denoted as c, such that $s+c=7$. The values of s can range from $0$ to $6$ (since there are only 6 snickerdoodle cookies available).
For each possible value of s, the corresponding value of c is given by $c=7−s$. Also, c must not exceed 8 (the number of available chocolate chip cookies).
Next, we compute the number of distinct arrangements for each valid combination of s and c using the binomial coefficient, which counts the number of ways to choose s positions out of 7 for the snickerdoodle cookies. This is given by: $C(7,s)$
Let's calculate it for each valid s we get, $$\sum_{s=0}^7C(7,s)=1+7+21+35+35+21+7=127$$ Thus, the total number of ways to arrange 7 cookies from 6 Snickerdoodle cookies and 8 chocolate chip cookies is $127$.
I know that the approach is not correct and I need to use the indistinguishable one differently. Can you help me with a well-explained solution? I was also trying to think about putting a divider between cookies but couldn't get a good idea. Any help!