We have two bags, Bag A has 40 red balls and 15 blue balls, Bag B has 40 blue balls and 10 red balls. One of these bags is selected at random and from it five balls are drawn at random, replacing each ball back into the bag after it has been drawn. The result is that we find 4 red balls and 1 blue. What is the probability that the selected bag was Bag A?
How to solve this problem? It is supposed to be solved using Bayes’ theorem and binomial distribution, but I failed to get the logic! Thank you very much for help!