A factory has two machines, and , producing electrical components. Machine produces of all components and machine produces . Among the components produced by machine , are defective; among those produced by machine , are defective.
(a) Find the probability that a randomly selected component is defective.
(b) Given that a randomly selected component is defective, find the probability that it was produced by machine .