Probability of a machine with two switches failing A certain type of switch has a probability p of working when it is turned on. Machine A, which has two of these switches, needs both such switches to be switched on to work, and machine B (also with two of the same switch) only needs at least one of them switched on to work.
How can I calculate the probability that each machine will fail to work?

Let $ q=1-p $ be the probability of a switch failing and let $ P(n) $ be the probability that, for a given machine, n switches succeed. For machine A to fail, you need to find $ P_a( \leq 1)=P_a(1)+P_a(0) $ because as long as one switches fails, the whole thing does. For machine B to fail, you need $ P_b(0) $ as both switches must fail. Assuming that the success of one switch does not affect the probability for the other, you can invoke the product rule; that is, the probability of an event for one switch and an even for another coinciding is the product of their probabilities. From there, hopefully you can figure out the rest.
