alice , benjamin , and carol each try independently to win a carnival game . if their individual probabilities for success are 1 / 5 , 3 / 8 , and 2 / 7 , respectively , what is the probability that exactly two of the 3 players will win but one will lose ?
p = p ( a wins , b wins , c loses ) + p ( a wins , b loses , c wins ) + p ( a loses , b wins , c wins ) = 1 / 5 * 3 / 8 * 5 / 7 + 1 / 5 * 5 / 8 * 2 / 7 + 4 / 5 * 3 / 8 * 2 / 7 = 7 / 40 . answer : e .
add(add(multiply(multiply(divide(const_4, 5), divide(3, 8)), divide(2, 7)), multiply(multiply(divide(1, 5), divide(5, 8)), divide(2, 7))), multiply(multiply(divide(1, 5), divide(3, 8)), divide(5, 7)))