So to solve this, remember that Bayes' Rule tells us that the probability of the coin selected being a given coin is equal to the probability of the flip being what it was that it's head or tails given coin i times the probability of coin i being the coin divided by the probability of the flip either heads or tails. 