I have two questions here that, I believe, revolves around the same topic.
1) Suppose there are 10 red balls, 9 yellow balls, and 6 blue balls. Five balls are selected at random without replacement.
Let $X$ be the number of red balls selected and $Y$ be the number of yellow balls selected. What is the joint p.f. of $X$ and $Y$?
I am not sure how to start this question. I know it's hypergeometric distribution. but the question require to find the p.f. of the "number of red/yellow balls" throws me off.
2) The Hardy-Weinberg law of genetics states that, under certain conditions, the relative frequencies with which three genotypes $AA$, $Aa$ and $aa$ occur in the population will be $θ^2$, $2θ(1 − θ)$ and $(1 − θ)^2$ respectively where $0 < θ < 1$. Suppose $n$ members of the population are selected at random. Let $X$ be the number of $AA$ types selected and let $Y$ be the number of $Aa$ types selected.
I feel the two questions are similar in nature and our variables are defined as the "number of ..." throws me off and I am not sure how to tackle these.