A committee of 5 members is to be formed from a pool of 10 candidates. However, there are certain restrictions:
1. Candidate A cannot be on the committee with Candidate B.
2. Candidates C and D must either both be on the committee or both be excluded from it.
How many different committees of 5 can be formed given these restrictions?