Application to solve simple probability