We are asked to find the probability that the chosen card came from Box 1 after we have been told that the number on the card is a non-prime. This is a question of conditional probability, so we begin by recalling Bayes’ theorem.
Bayes’ theorem for two events A and B is stated as
P(A∣B)=P(B∣A)P(A)+P(B∣Ac)P(Ac)P(B∣A)P(A).
In the present situation:
- Event A is “the card is drawn from Box 1.”
- Event B is “the number on the card is non-prime.”
- Event Ac is “the card is drawn from Box 2.”
Thus we want P(A∣B), the probability that the card came from Box 1 given that it is non-prime.
First we note that the choice between the two boxes is made at random, so
P(A)=21,P(Ac)=21.
Next we must compute P(B∣A), the probability that the number is non-prime when the card is taken from Box 1. Box 1 contains the integers from 1 to 30.
We list all primes up to 30:
2,3,5,7,11,13,17,19,23,29.
There are 10 such primes. Since Box 1 has 30 cards altogether, the number of non-primes (including the number 1 and all composites) is
30−10=20.
Hence
P(B∣A)=3020=32.
Now we find P(B∣Ac), the probability that the number is non-prime when the card comes from Box 2. Box 2 contains the integers from 31 to 50, a total of 20 numbers.
We list the primes between 31 and 50:
31,37,41,43,47.
There are 5 such primes. Therefore the count of non-primes in Box 2 is
20−5=15.
So
P(B∣Ac)=2015=43.
We have gathered all the ingredients needed for Bayes’ theorem. Substituting into the formula gives
P(A∣B)=P(B∣A)P(A)+P(B∣Ac)P(Ac)P(B∣A)P(A)=(32)(21)+(43)(21)(32)(21).
We simplify the numerator first:
(32)(21)=32×21=62=31.
Now we simplify each part of the denominator:
First term in the denominator:
(32)(21)=31
Second term in the denominator:
(43)(21)=43×21=83.
Add the two terms to complete the denominator:
31+83=248+249=2417.
Thus the conditional probability becomes
P(A∣B)=241731=31×1724=5124=178.
Hence, the correct answer is Option B.