Source: http://math.lyceedebaudre.net/sites/default/files/Exercices/terminaleS/Exercice%20proba_cond_coorection.pdf