We are asked to find the probability of having exactly 4 pairs of shoes.
Recall that the probability is given by
[tex]P=\frac{\text{number of favorable outcomes}}{\text{total number of outcomes}}[/tex]For the given case,
Number of favorable outcomes = 20 (frequency of having 4 pairs of shoes)
Total number of favorable outcomes = 12 + 20 + 38 + 20 + 10 = 100
So, the probability of having exactly 4 pairs of shoes is
[tex]P(x=4)=\frac{20}{100}=\frac{1}{5}=0.2[/tex]Therefore, the probability of having exactly 4 pairs of shoes in the closet is 1/5 (0.2)