LOS ANGELES (AP) — Comcast has agreed to buy Time Warner Cable for $45.2 billion in stock, or $158.82 per share, in a deal that would combine the top two cable TV companies in the nation.