Let me show you a simple explanation:
A = an ace
B= 12 random cards
There are 52 cards in a deck. 12 cards have been pulled out.
P(B) = 12/52
The probability of pulling a card aside from the 12 that have been pulled out.
P(B') = 40/52
However, 3 of those 12 cards are aces. That's already been given. So the probability of getting an ace from those 12 cards is:
P(A|B) = 3/12
There are 4 aces in a deck. That means there is one more ace left in the remaining 40 cards.
P(A|B') = 1/40