a) Because each pick is independent (we pick and then replace), we just have to find the probability of picking it out once, then cube that. This probability is 4/(3+3+4)=2/5. So, it is 8/125.
b) If we replace it, then we can do it in a strategic way:
The probability of picking it out the first time is 2/5. Now, there are 3 button downs and 9 shirts total.
The second time: 3/9=1/3
Now there are 2 and 8
Third time: 2/8=1/4.
The final probability is 2/5*1/3*1/4=1/30