The Office stars Oscar Nuñez and Kate Flannery won $1 million for charity during the season finale of Who Wants To Be a Millionaire?

The pair plan to donate their winnings to Planned Parenthood and Philabundance, a food bank serving the Philadelphia area. They successfully answered all the way to the final question — and even enlisted the help of fellow Office alum, Brian Baumgartner, as their Phone-A-Friend.

The final question was “The word ‘planet’ comes from an ancient Greek word that literally means what?” The options were powerful, immortal, stranger or wanderer.

“I hate this game,” Nuñez, 66, joked as he laid on the stage while Flannery, 61, answered the question.

“So much wandering. I could make a case for every one of these choices,” host Jimmy Kimmel said. “And you’re laying down looking up at the sky and stranger, immortal, powerful, all reasonable choices,” he said, dialing up the suspense.

Kate Flannery, Jimmy Kimmel, Oscar Nunez

Kate Flannery, Jimmy Kimmel, Oscar Nunez.Disney/Christopher Willard

As the crowd waited in silence, Kimmel, 57, then revealed, “And yet the choice you made by putting yourself in the body of an ancient Greek, perhaps even Galileo himself to choose the correct answer.”

Nuñez and Flannery then cheered as confetti exploded onstage. “What is happening?” a shocked Flannery said.

Nuñez recently reprised his role as Oscar Martinez from The Office in the new spinoff, The Paper. Alex Edelman, who plays Adam Cooper in the new show, told PEOPLE exclusively of Nuñez, “It was really amazing to be on set with him all the time.”

“Oscar did a really good job of being a mentor to us and a really great role model for everybody on set without ever being like, ‘Well, this is how we did it on The Office,’ ” Edelman added. “He just sort of modeled the behavior really beautifully, and I think a lot of people sort of followed his lead.”

The Paper is a spinoff of the beloved The Office and takes on the same mockumentary style. The new show follows a dying Midwestern newspaper, The Truth Teller. It stars Nuñez, Edelman, Gbemisola Ikumelo, Domhnall Gleeson and Sabrina Imappaciatore.

It is available to stream on Peacock.