Problem description
A package contains six batteries. Two of them are defective. Suppose that we randomly select three batteries and test them for defects.
What is the probability that exactly one of the three selected batteries are defective?
Determining the sample space
$ _{n}C_{r} = \frac{n!}{r!(n-r)!} = \; _{6}C_{3} = \frac{6!}{3!(6-3)!} = 20 = S $
The above determines the sample space for the first part of the problem description (we select three batteries).
Question
From manually enumerating the possible combinations from the sample space, like $ S = \{(D1, D2),\ (D1, D3)\ …\ (A5, A6)\} $; I know that the answer to the problem is:
$ P(E) = \frac{s_{e}}{S} = P(12/20) = P(3/5) = P(60 \ \%) $.
But what is the formulaic way to determine that there are $s_{e} = 12$ combinations that can contribute to our event $E$ where exactly one of the two sampled batteries are defective?