A club has $12$ members. They need to choose a programming team of $3$ members and a hacking team of $4$ members. Members can be on both teams, but Jack only wants to be on at most one team. How many ways can both teams be chosen?
I did two different ways. I solved if Jack chooses programming, $C(12,3)=220$ $C(11,4)=330$. In total there are $550$ different ways both teams can be picked.
But, if Jack chooses hacking, I solved $C(11,3)=165$ and $C(12,4)=495$. In total there are $650$ ways both teams can be chosen.
I was wondering if this is the correct method.
Saying that Jack is on at most one team means that he is either on one of the two teams or on neither team.
Method 1: We consider cases.
Since these cases are mutually exclusive and exhaustive, the number of ways the teams can be selected without placing Jack on both teams is found by adding the above results.
Method 2: We subtract the number of selections in which Jack is placed on both teams from the total number of possible selections.
If there were no restrictions, we could select three of the twelve club members to be on the programming team and four of the twelve club members to be on the hacking team in $$\binom{12}{3}\binom{12}{4}$$ ways.
If Jack is on both teams, we have to select two of the other eleven club members to be on the programming team and three of the other eleven club members to be on the hacking team. Hence, there are $$\binom{11}{2}\binom{11}{3}$$ selections in which Jack is on both teams.
Therefore, there are $$\binom{12}{3}\binom{12}{4} - \binom{11}{2}\binom{11}{3}$$ ways to select the teams without placing Jack on both teams.
Note: In your attempt, you made the following errors.