Answer:
18
Explanation:
First choose the president. From the 4 people, everyone can be the president except Dan, so there are 3 choices.
Then, choose the treasurer. Neither Bob nor Dan can be the treasurer so there are only 2 choices.
Now choose the secretary. Cyd is the only person who can't take this position, so there are 3 choices.
We are asked by the number of ways of choosing the 3 officers. Using the product rule, this is equal to 3×2×3=18.