A certain type of electronic devices is produced by a factory with three production lines P, Q and R, which account for 40%, 20% and 40% of the total output of the factory respectively.
A random sample of 10 devices is drawn.
(a) Find the probability that, in the sample, the number of devices produced by P, Q and R are 3, 3 and 4 respectively.
Past records reveal that the proportion of defective devices produced by P, Q and R are respectively 15%, 20% and 10%, and the proportion of defective devices produced by the whole factory is 14%.
(b) If the number of devices produced by P, Q and R in the sample are 3, 3 and 4 respectively, find the probability that there are exactly two defective devices in the sample and only one of them was produced by P.