Assuming each pocket equally likely to be chosen, the question becomes: after choosing 7 balls, what is the probability that he has chosen 5 balls from the left and 2 balls from the right. The answer is the binomial term $\frac{1}{2^7}\binom{7}{5}=0.1640625$.