The stack has 8 cards numbered from 1 to 8
She chooses one card and then, without replacing she chooses a second card without replacing the first card chosen.
The possible outcomes are {1, 2, 3, 4, 5, 6, 7, 8}
Out of these numbers, 4 are prime numbers {2, 3, 5, 7}
To determine the probability of chosing one card at random and this card to be a prime number, you have to divide the number of cards that are prime numbers by the total number of cards.
Let "A" represent the event "The first card is a prime number", the probability will be:
Now that we took one card from the stack, the total number of cards is reduced from 8 to 7
And because the number was a prime number, to amount of cards with prime numbers is also reduced, from 4 to 3
Let "B" represent the event "the second card is a prime number, given that the first card drawn was a prime number"
You can calculate the probability as:
Finally what we need to calculate is the probability that "The first card is a prime number" and "the second card is a prime number, considering that the first card was a prime number"
This is an intersection and you can calculate it as the product between both events:
The probability that she would pick two cards that are prime numbers is 3/14 ≅ 0.21