The first reaction, A + B --> AB is a combination reaction, where two individual reactants combine to form a single product.
The second reaction, AX + BY --> AY + BX is a double displacement reaction, where the two reactants each have two ions/units, and these are swapped, where the X transfers from A to B, and the Y transfers from B to A.