Law of total Probability, Sum rule of probability
Marginal probability from conditional probability means considering all cases by integral
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