We have a total of 10 members to choose from, this means that we have a total of 10 possibilities.
a.
We have four republicans and we need to choose three of them, the number of ways to do this is:

Since we are going to choose 3 people of the total of 10 members the number of ways to do this is:

The probability of choosing all republicans is:

Therefore the probability is 1/30
b.
In this case we need to choose 3 people out of 3 people (since we only have 3 democrats) there's only one way to do this.
Then in this case the probability is:

Therefore the probability of choosing all democrats is 1/120