WOODBURY - Lottery ticket-holders in Illinois, Kansas and Maryland each selected the winning numbers for the world record-breaking $640 million Mega Millions jackpot, but according to Newsday, two second-place winning tickets were sold on Long Island.

Carolyn Hapeman, of the New York Lottery, told Newsday that one second-place ticket was sold at Brush Hollow Deli on Brush Hollow Road in Westbury, and another was purchased at a 7-Eleven store on Route 112 in Medford.

Second-place winners will walk away with $250,000 each. A total of 17 second-place winning tickets were purchased in New York State.

Illinois' winning ticket was sold in the small town of Red Bud, near St. Louis, and the winner used a quick pick to select the numbers, Illinois Lottery spokesman Mike Lang said. The Maryland Lottery said it sold a winning ticket at a retail store in Baltimore County.

A winning ticket also was purchased in northeast Kansas, according to the Kansas Lottery website. A spokeswoman didn't immediately return a message Saturday morning.

Each winning ticket was expected to be worth more than $213 million before taxes, Lang said. The winning numbers in Friday night's drawing were 02-04-23-38-46, and the Mega Ball 23.

Maryland Lottery spokeswoman Carole Everett said the last time a ticket from the state won a major national jackpot was in 2008, when a ticket sold for $24 million.

The estimated jackpot dwarfs the previous $390 million record, which was split in 2007 by two winners who bought tickets in Georgia and New Jersey.

Americans spent nearly $1.5 billion for a chance to hit the jackpot, which amounts to a $462 million lump sum and around $347 million after federal tax withholding. With the jackpot odds at 1 in 176 million, it would cost $176 million to buy up every combination. Under that scenario, the strategy would win $171 million less if your state also withholds taxes.Associated Press reports contributed to this article.