I get a little different answer from Ninja
Possible teams :
Team 1 : Bob is on the team and we can pick any 4 of the other 10 players [not counting Yogi ] = C(10,4) = 210 possible teams
Team 2 : Same as team 1 except that Yogi is on the team and we can pick any 4 of the other 10 players [not counting Bob ] = C(10,4) = 210 possible teams
Team 3 : Neither is on the team and we can pick any 5 of the other 10 players = C(10,5) = 252 possible teams
So....the total teams, if the starting lineup can't contain both/either Bob and Yogi = 2 * 210 + 252 = 672
Note.....the only remaining team is the one where both are on it and we can pick any 3 of the other 10 players = C (10,3) = 120
So all possible .teams = .....672 + 120 = 792 = C(12,5)
