Solution

ID: past-exam-of-the-mathematics-course-of-the-year-1-of-the-natural-sciences-course-of-the-university-of-cambridge/2022/paper-2/14/b/solution

There are three possible count pairs conditional on two trees. Their probabilities, from the two independent binomial distributions, are
The first two correspond to matching kinds, so the conditional probability is
This form remains valid at endpoints whenever the conditioning event has positive probability; if the denominator vanishes, the conditional probability is undefined. As a check, when the result is , the fraction of two-element subsets containing matching kinds.

New to topics? Read the docs here!