Product rule which involves Bayes Theorem
Joint probability of X and Y is simply understood as choosing X first and choose Y given X. Confusing part is that regardless of order, reverse probability is expressed as same form.
After that we can decide Pairwise Independence