Final answer:
The probability that both sweets are toffees is 7/20. Given that they are both toffees, the probability that they both came from Box A is 8/7.
Step-by-step explanation:
To find the probability that both sweets are toffees, we need to find the probability of selecting a toffee from each box and then add them up. Box A contains 6 toffees out of 10 sweets, so the probability of selecting a toffee from Box A is 6/10. Similarly, Box B contains 5 toffees out of 8 sweets, so the probability of selecting a toffee from Box B is 5/8. Box C contains 3 toffees out of 10 sweets, so the probability of selecting a toffee from Box C is 3/10. Now, since we are choosing a box at random, the probability of choosing any particular box is 1/3. To find the overall probability, we multiply the probability of choosing a particular box by the probability of selecting a toffee from that box. Therefore, the probability of selecting toffees from both boxes is (1/3) * (6/10) + (1/3) * (5/8) + (1/3) * (3/10) = 1/5 + 5/24 + 1/10 = 7/20.
To find the probability that the toffees came both from Box A, given that they are both toffees, we need to find the conditional probability. The conditional probability is the probability of the intersection of the two events divided by the probability of the first event. In this case, the intersection of the two events is the event that both toffees came from Box A, and the first event is the event that both sweets are toffees. Therefore, the conditional probability is (1/3) * (6/10) / (7/20) = (2/5) / (7/20) = 8/7.