John and Mary are going to host an ice-cream party. They want to provide $8$ different flavours. John goes to store A to buy the first $4$ ice cream and Mary goes to store B to buy the other $4$ ice-cream. Assume that there are $7$ different flavours sold in each store; and store A and store B share $1$ similar flavour (ex:store A and Store B both have the Vanilla flavour). Calculate the number of possible ice- cream combinations when they buy the ice cream! (Different orders are not considered as different combinations)
The problem is I can't find the repetitive part. I think it is just $C(7,4) \cdot C(7,4)=1225$. Even I count it in different cases, it still adds up to be $1225$.
The invalid cases, instead of repetition, of $\binom74\binom74$ are when both people buy the common flavour (i.e. vanilla).
The number of cases that this happens is $\binom63\binom 63$. So the answer is
$$\binom74\binom74-\binom63\binom63 = 1225-20^2 = 825$$
The additive and subtractive answers here show the identity:
$$\begin{align*} \binom nr^2 &= \left[\binom{n-1}{r-1}+\binom{n-1}r\right]^2\\ &= \binom{n-1}{r-1}^2 + 2\binom{n-1}{r-1}\binom{n-1}r + \binom{n-1}r^2 \end{align*}$$
In particular, $n=7$ and $r = 4$.