Design the logic according to your conditions. And make sure the conditions can fit the logic or you'll never go as you wish. If you can't create the simple logic of this, you are not better then 10 years old kid. Hint: Tree diagram method. I'm sorry.