Solving simple probability problems