There is a box with 12 dice which all look the same. However there are actually three types of dice:
6 normal dice. The probability to get a 6 is 1/6 for each dice.
3 biased dice. The probability to get a 6 is 0.85.
3 biased dice. The probability to get a 6 is 0.05.
You take a die from the box at random and roll it.
What is the conditional probability that it is of type b, given that it gives a 6?
Accordingly to Bayes rule, $$\mathbf P(b\,|\,6)=\frac{\mathbf P(6\,|\,b)\cdot \mathbf P(b)}{\mathbf P(6\,|\,b)\cdot \mathbf P(b)+\mathbf P(6\,|\,n)\cdot \mathbf P(n)},$$ where "$n$" denotes the normal type. Clearly, $\mathbf P(6\,|\,n)=1/6$, $\mathbf P(n)=1/2$, and $$\mathbf P(6\,|\,b)=0.5\cdot 0.85+0.5\cdot 0.05=0.45.$$ Therefore, $$\mathbf P(b\,|\,6)=\frac{0.45\cdot 0.5}{0.45\cdot 0.5+1/6\cdot 0.5}=\frac{27}{37}.$$