<P> At the beginning of Season 8, Pam is revealed to be pregnant with her and Jim's second child, Philip Halpert . The child coincided with Jenna Fischer's actual pregnancy . She begins her maternity leave after "Gettysburg". Pam returns in "Jury Duty", where she and Jim bring Cece and Phillip into the office . In both "Tallahassee" and "Test the Store" Pam is shown helping, and developing her friendship with Andy . </P> <P> Early in season 9, Jim is restless about his life in Scranton and helps a friend start a Sports Marketing business, Athlead, in Philadelphia but he keeps it a secret from Pam until the third episode "Andy's Ancestry". Although Pam is happy for his decision, she is concerned about the fact that he had kept it a secret from her and she is later disturbed to hear about just how much of their money he had invested . Jim begins spending part of each work week in Philadelphia, but in "Customer Loyalty", the strain of this on Pam is evident when she breaks down in tears, and is comforted by Brian, the boom mic operator of the film crew . </P> <P> In "Moving On", Pam interviews for a job in Philadelphia to be closer to Jim, but she is turned off by the idea when her prospective new boss bears a striking resemblance in behavior to Michael Scott . Over dinner, Pam reveals to Jim that she doesn't really want to move to Philadelphia after all . However, in "Livin' the Dream", when Athlead is bought out and Jim is offered a large sum of money for 3 months to pitch the company across the country, Pam overhears Jim refuse the opportunity because of her and appears to have mixed feelings about this decision . In "A.A.R.M.", Pam tells Jim that she's afraid that he will resent her for making him stay and that she might not be enough for him . Jim asks the camera crew to compile documentary footage of the two of them to show her . When she finishes the montage, which shows Jim taking back a letter he intended to give her with his teapot gift during Christmas; Jim finally gives her that letter, and she reads it, visibly moved . In the series finale, which takes place a year later, she reveals to Jim that she secretly put the house on the market, so that they can move to Austin, Texas, and take his job back at Athlead (now Athleap). </P> <P> From her years working the front desk, Pam has become well - acquainted with the Dunder - Mifflin staff and is consistently shown to have a thorough understanding of her coworkers' personalities, including the more eccentric individuals Dwight Schrute and Michael Scott . She uses this familiarity to manipulate them, often for their and the company's best interests (such as her giving the staff elaborate instructions on how to handle a heartbroken Michael in "The Chump") but also occasionally for her own . This familiarity plays a large part in her efficiency as office administrator and was crucial to her being promoted to the previously non-existent position . </P>

When does pam find out she is pregnant for the second time