Caesar Rodney High School grad Andrew Moore, 19, of Camden, wisely knew when to walk away and won $40,000 on the "Who Wants To Be A Millionaire" episode that aired Wednesday on ABC.

Andrew Moore, of Camden, won $40,000 as a contestant on "Who Wants To Be A Millionaire" in the episode that aired Wednesday on ABC.

Moore competed during "Double Your Money Week" in which contestants could win as much as $50,000 by answering just one question, Disney-ABC officials said. Sure enough, Moore capitalized on the opportunity.

For double the money, "Millionaire" hostess Meredith Vieira asked Moore, "The nursery rhyme character Peter, who 'had a wife and couldn't keep her,' also notably was an eater of what?" Moore correctly answered "pumpkins," an answer that was initially worth $25,000.

Moore, 19, is a sophomore at Delaware Technical & Community College and a 2011 graduate of Caesar Rodney High School. He is the son of Patrick and Nathalie Moore.

Moore had accumulated $70,000 when he answered the "Double Your Money" question, the fourth one posed to him, "Millionaire" spokeswoman Trisha Miller said. He ultimately made it to the eighth question and had accumulated $80,000, Miller said. But he was out of lifelines at that point, and he decided to take the offer to walk away with half of his winnings up to that point. Moore would have won just $1,000 if he guessed incorrectly.

The show's airing culminated a journey that began for Moore back in May when he researched what game shows he could be on and landed an audition with "Millionaire" in July. His best friend, CR grad Mitchell Howell, went New York City with him as his on-air companion for the show's taping in September.

After his win, Moore said would buy an iPhone 5 and use the rest of the money to help for college, including his pending transfer to the University of Delaware in the fall. "It was a wonderful experience," Moore said. "I believe I played the game to the best of my ability and had the best possible outcome. I couldn't have asked for it to go any other way."