The catch, which I missed as well, is that they are asking about the number of men and women on the panel AFTER replacing one woman by a man.
Before replacement, you have
4M = 3W => M=W x 3/4 (this equation will guide the number of women to be positive multiples of 4 because "partial" or "negative" women do not exist "yet").
After replacement, the revised number of males and females will be M+1 and W-1 respectively.
W=4 => M=3 => M+1 = 4 & W-1 = 3 => A
W=8 => M=6 => M+1 = 7 & W-1 = 7 => C
Since two quanitities cannot be equal and unequal at the same time, you click D at this point.