We are asked to find the probability of having exactly 4 pairs of shoes.
Recall that the probability is given by
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
Therefore, the probability of having exactly 4 pairs of shoes in the closet is 1/5 (0.2)