A system works only when x components work. I go to a shop and buy n components as its not guaranteed that every component that I buy would be working. After my purchase and after my testing, I found out that I don't have the required number of components. I go back to the shop and buy m more.

What is the probability that my system would work?

Please use the following probabilities: p for a component working, (1-p) for a component not working.

Make necessary assumptions where applicable!

Thanks