Bag I has 7 red and 3 green balls. Bag II has 3 red and 17 green.
(a) If the ball selected was a green, then what is the probability that Bag I was selected, and what is the probability that Bag II was selected?
(b) If a second ball I choose from the same bag with first time, what is the probability that the ball will be green; what is the probability that the ball will be red?
Remark: The ball first time pick will put back into bag.
a)First, since there 2 times more balls in bag II you can see that repeating this experiment many times, the balls from bag I are gonna be pick twice as much.The balls from bag one count double then.
You know you got a green ball, and there is 23 green balls in total (6=3*2 in bag I because they count double) + (17 in bag II):
b) In this case you know you gotta pick from only one bag, you chances to pick red or green are the number of green/red ball out of the total number of balls in that unique bag.
this is an intuitive answer, for the exact formula you can look the previous comments on your question.
Have a nice day.