DES MOINES, Iowa (NEXSTAR) — Someone in New Jersey overcame the odds Tuesday night and won the $1.12 billion Mega Millions jackpot, breaking a winless streak that dated to last December.

The numbers drawn were: 7, 11, 22, 29, 38 and 4. The winning ticket was sold in New Jersey, according the the Mega Millions website.

A Match 5 + Megaplier winner was sold in New York. Match 5 winners were sold in California, Colorado, Florida (2), Georgia (2), Illinois, Indiana, Michigan, New York (2) and Ohio.

Until the latest drawing, no one had matched all six numbers and won the Mega Millions jackpot since Dec. 8. That amounted to 30 straight drawings without a big winner.

The prize is the eighth largest in U.S. lottery history.

The $1.12 billion jackpot is for a winner who is paid through an annuity, with an initial payment and then 29 annual payments. Most winners choose a cash payout, which would be $537.5 million.

The next big U.S. lottery drawing will be Wednesday night for an estimated $865 million Powerball jackpot. No one has won that prize since New Year’s Day, making it 36 drawings without a winner.

The odds of winning either jackpot are steep — 1 in 302.6 million for Mega Millions, 1 in 292.2 million for Powerball — but if you overcome those odds and secure the record-setting jackpots, there are a number of steps experts suggest following. That includes building your team — a financial advisor, a tax advisor and a lawyer are highly recommended — and keeping the ticket secure. 

Once you’re ready to come forward and claim your prize, you’ll have a big decision to make: take the annuity option or the cash payout.

The annuity option is the dollar amount you’ll most frequently see advertised when it comes to Mega Millions and Powerball. For the former, it’s $1.12 billion, and for the latter, $865 million. If you select this payout method, you’ll receive a one-time payment, followed by 29 annual payments that increase by 5% each time until they reach the amount you won.

The cash option — $537.5 million for Mega Millions, $416.1 million for Powerball — signifies the amount of money game officials have determined is needed to fund the annuity option.

If you want your winnings right away, you’ll want to select the cash option, but if you want more money in the end, you may prefer the annuity option.

So how do you know what’s best for you?

“Most people take the lump sum because they want the money, they want to control it,” Robert Pagliarini, president and chief financial advisor for Pacifica Wealth Advisors and author of “The Sudden Wealth Solution,” previously told Nexstar. “I honestly think most people are probably better off taking the annuity.”

As mentioned, the annuity option means you’ll receive a check every year with another, slightly larger portion of your lottery winnings. While that annual allowance may sound annoying to a newfound jackpot winner, it can also help protect you. 

For example, let’s say you mess up with your winnings one year. Maybe you spend it unwisely, make some poor purchases, or gift too much away. If you had selected the cash option, “there’s no do-over, there’s no reset,” Pagliarini explained.

“But with the annuity, you get to redeem yourself every single year,” he added. “It might take a few years, it might take five or six years, but eventually you’ll figure it out.”

You’ll also see more taxes are withheld if you select the lump sum cash payout. Every state is required to withhold 25% in a federal lottery tax, and after additional withholdings, you’ll be losing roughly 37% of your jackpot to taxes. Then, depending on where you live, you’ll see even more withheld for state taxes.

However, Jeremy Keil, a financial adviser from Wisconsin, previously told the Associated Press that “there’s no bad choice” when it comes to the payout you select. Keil said Powerball’s annuity assumes a 4.3% investment gain of the jackpot’s cash prize.

“If you think you can beat the 4.3%, you should take the cash,” Keil said. “If you don’t, take the annuity.”

Regardless of what option you pick, if you win either jackpot, Pagliarini recommends building your team of experts, signing the ticket and keeping it secure, and “make [your payout] decision as fast as you possibly can, in a way where you feel very comfortable about the decision.” 

Mega Millions is played in 45 states plus Washington, D.C., and the U.S. Virgin Islands. Powerball also is played in those states as well as Washington, D.C., the U.S. Virgin Islands and Puerto Rico.

The Associated Press contributed to this report.