Friday’s jackpot will be the second-largest jackpot in Mega Millions history, and the fifth-largest ever in North America.

If one ticket matches all six numbers for the $400 million mega-jackpot, the winner will have the choice of receiving the full jackpot in 30 annual payments, or a cash option of approximately $216.4 million before taxes, said the Mega Millions website.

“The strong sales of Mega Millions tickets mean more than just an exciting jackpot,” said Paula Otto, executive director of the Virginia Lottery and lead director for the Mega Millions group. “They mean greater profits to benefit each state in which Mega Millions is played.”

Each state determines what its Mega Millions profits go to. In many states, profits go to education. While other states put the profits towards parks, natural resources, property tax relief, programs to help the elderly or other important causes.

More than 5 million tickets won some sort of prize in Tuesday’s drawing, including five tickets that matched the first five numbers to each win $1,000,000. Those tickets were bought in Connecticut, Massachusetts, New Jersey and two in Ohio.

The Mega Millions jackpot has been growing since October 1, when Mega Millions had its most recent jackpot winner. The jackpot has now rolled 20 times without a winner.

According to Mega Millions, the odds of winning the jackpot are approximately one in 259 million.