the total entropy of A and B together is the entropy of A, S_A, plus the entropy of B, S_B. This is the quantity we want to maximise with respect to the internal energies U_A and U_B. To give an example of this idea in action, I'm going to build an
Temperature and the Sackur–Tetrode Equation