<Tr> <Td> ← Previous "Moroccan Christmas" </Td> <Td> Next → "Prince Family Paper" </Td> </Tr> <Tr> <Td_colspan="2"> The Office (U.S. season 5) List of The Office (U.S. TV series) episodes </Td> </Tr> <P> "The Duel" is the twelfth episode of the fifth season of the American comedy television series The Office, and the show's 84th overall episode . In the episode, Andy learns his fiancee Angela is having an affair with Dwight, and the two challenge each other to a physical fight to win her affections . Meanwhile, Michael travels to New York City for a meeting with David Wallace, where Wallace seeks managerial advice from Michael due to the poor financial condition of the fictional company, Dunder Mifflin . </P> <P> The episode was written by Jennifer Celotta and directed by Dean Holland, the show's long - time editor making his directorial debut . It featured the conclusion of the love triangle between Dwight, Andy and Angela, a subplot that had been going on since the end of the fourth season . David Wallace's meeting with Michael marked the show's first acknowledgment of the economic crisis facing much of the globalized nation at the time of the episode due to the financial crisis of 2007--2010 . </P>

When does andy find out about angela and dwight