Use Bayes rule to mechanically solve probability riddles