<P> The fifth season consists of 28 half - hours of material, divided into 24 half - hour episodes and two hour - long episodes, one of which aired after Super Bowl XLIII . </P> <P> Jim proposes to Pam at a gas station halfway between them because he could not wait . Pam ultimately returns from New York to Scranton, where Jim has bought his parents' house for the two of them . Having avoided jail and only been sentenced to community service, Ryan dyes his hair and starts working for a bowling alley . Michael initiates a romance with Holly until she is transferred to the Nashua, New Hampshire branch and the relationship ends . When Andy is made aware of Dwight and Angela's continued affair, both men leave her . Newly hired Vice President Charles Miner implements a rigid managerial style over the branch that causes Michael to resign in protest . Michael opens the Michael Scott Paper Company, enticing Pam and Ryan to join as salespeople, and though his business model is ultimately unsustainable, Dunder Mifflin's profits are immediately threatened . The members of the Michael Scott Paper Company enjoy throwing cheese balls into each others' mouths and they have a morning cheer to boost morale . In a buyout of the Michael Scott Paper Company, the three are rehired with Pam promoted to sales and Ryan returning as a temp . During the chaos, new receptionist Erin is hired to fill the vacancy originally left by Pam . The season ends with a scene that obviously announces Pam's pregnancy . </P> <P> The sixth season consists of 26 half - hours of material, divided into 22 half - hour episodes and two hour - long episodes . </P> <P> Jim and Pam marry and have a baby named Cecelia Marie Halpert . Meanwhile, Andy and Erin develop mutual interest in one another, but find their inherent awkwardness inhibits his attempts to ask her out on a date . Rumors of bankruptcy begin to surround Dunder Mifflin, and by Christmas, Wallace announces to the branch that Dunder Mifflin has accepted a buyout from Sabre Corporation, a printer company . While Wallace and other executives are let go, the Scranton office survives due to its relative success within the company . In the season finale, Dwight buys the office park . Michael agrees to make an announcement to the press regarding a case of faulty printers . When Jo Bennet, Sabre CEO, asks how she can repay him, Michael responds that she could bring Holly back to the Scranton branch . </P>

A budget that includes the office manager's salary