Using probabilities to solve a real problem