> The **hypergeometric distribution** describes the probability of $k$ successes in $n$ draws, without replacement, from a finite population of size $N$ that contains exactly $K$ successes, wherein each draw is either a success or a failure. In contrast, the **binomial distribution** describes the probability of $k$ successes in $n$ draws with replacement.
Therefore the first problem corresponds to hypergeometric distribution, whereas the second corresponds to the binomial.