See answer here
https://web2.0calc.com/questions/probability_15053
See the question here
https://web2.0calc.com/questions/geometry_52409