Apply probability methods in solving problems