picking both a microstate of A and a microstate of B is the product of their numbers of microstates, Omega_A times Omega_B. Since logarithms convert multiplication into addition, the total entropy of A and B together is the entropy of A, S_A, plus the entropy of B,
Temperature and the Sackur–Tetrode Equation