machine – x produces 50 % of the total output and machine - y produces 75 % of the total output . an average of 9 units out of a 1000 goods manufactured by machine - x and two unit of 500 units produced by machine - x prove to be defective . what is the probability that a unit chosen at random from the total daily output of the factory is defective ?
n0 = 50.0
n1 = 75.0
n2 = 9.0
n3 = 1000.0
n4 = 500.0
t0 = n1 / 100.0
t1 = n0 / 100.0
t2 = n2 / t0
t3 = n3 * t1
t4 = n3 + t3
t5 = t2 / 2.0
t6 = n2 + t5
t7 = n3 + t4
answer = t6 / t7
print(answer)