So same sum where all possible joint values of all A and B. You still have A times B. But now we have times the probability that A takes on the value of A times the probability that B takes on the value of B. So now we just need to regroup these terms. 