AT&T will spin off WarnerMedia into a separate company to merge with Discovery. After the merger AT&T will receive $43 billion, and its shareholders - 71% of the shares of the merged company. Discovery shareholders will receive 29%.