Let E1 be the event that biased coin (heads on both sides) is selected, E2 be the event that unbiased coin is selected and A be the event that all five tosses show head up.
∴ P(E1)=210, P(E2)=810
P(A/E1)=1 and P(A/E2)=132
By using Baye's Theorem, we have
P(E1/A)=P(E1). P(A/E1)P(E1). P(A/E1)+P(E2). P(A/E2)
=210×1210×1+810×132=89