Why companies buy each other, how the deal is paid for, and the math bankers run first: accretion and dilution, goodwill, synergies, and the exchange ratio.