Solved problems on bayes theorem