PepsiCo is to buy General Mills out from their joint venture.