Mars, the candy giant whose brands include M&M’s and Skittles, will buy Kellanova—makers of snacks like Pringles and Cheez-It—in a deal valued at $35.9 billion, both companies announced Wednesday, a transaction that would reportedly be the largest in the packaged food industry in over a decade.