<Table> <Tr> <Th> No . overall </Th> <Th> No. in season </Th> <Th> Title </Th> <Th> Directed by </Th> <Th> Written by </Th> <Th> Original air date </Th> <Th> Prod . code </Th> <Th> U.S. viewers ( millions ) </Th> </Tr> <Tr> <Th> 23 </Th> <Td> </Td> <Td> `` Where Were We ? '' </Td> <Td> Pamela Fryman </Td> <Td> Carter Bays & Craig Thomas </Td> <Td> September 18 , 2006 ( 2006 - 09 - 18 ) </Td> <Td> 2ALH01 </Td> <Td> 10.48 </Td> </Tr> <Tr> <Td colspan="8"> The gang tries to help Marshall get over Lily . Barney takes him to a strip club , and Ted takes him to a Yankees game . Marshall finds a credit card trail that leads to Lily 's hotel in the city , but the guys try to keep him from going to see her . </Td> </Tr> <Tr> <Th> 24 </Th> <Td> </Td> <Td> `` The Scorpion and the Toad '' </Td> <Td> Rob Greenberg </Td> <Td> Chris Harris </Td> <Td> September 25 , 2006 ( 2006 - 09 - 25 ) </Td> <Td> 2ALH02 </Td> <Td> 9.14 </Td> </Tr> <Tr> <Td colspan="8"> Barney teaches Marshall how to pick up women . When things start to go sour for an awkward Marshall , Barney steps in and wins the women over ... for himself . Lily returns from her art experience . While helping her look for a new apartment , Ted gets sick of hearing about Lily 's amazing summer in San Francisco . </Td> </Tr> <Tr> <Th> 25 </Th> <Td> </Td> <Td> `` Brunch '' </Td> <Td> Pamela Fryman </Td> <Td> Stephen Lloyd </Td> <Td> October 2 , 2006 ( 2006 - 10 - 02 ) </Td> <Td> 2ALH03 </Td> <Td> 9.32 </Td> </Tr> <Tr> <Td colspan="8"> When Ted , Robin , and the gang spend the weekend with his parents , Ted is stunned when a family secret that changes things forever is unveiled at brunch . Meanwhile , Marshall and Lily find it difficult to control themselves when they are forced to spend time together with Ted 's parents . </Td> </Tr> <Tr> <Th> 26 </Th> <Td> </Td> <Td> `` Ted Mosby , Architect '' </Td> <Td> Pamela Fryman </Td> <Td> Kristin Newman </Td> <Td> October 9 , 2006 ( 2006 - 10 - 09 ) </Td> <Td> 2ALH04 </Td> <Td> 9.09 </Td> </Tr> <Tr> <Td colspan="8"> After Robin insinuates that Ted 's job is boring , Barney sets out to convince his buddy otherwise . As the guys test out the pick - up line , `` Ted Mosby , Architect '' on the ladies , they realize it really works . But when Robin hears that Ted is parading around town picking up girls , she is hot on his heels to discover the truth . </Td> </Tr> <Tr> <Th> 27 </Th> <Td> 5 </Td> <Td> `` World 's Greatest Couple '' </Td> <Td> Pamela Fryman </Td> <Td> Brenda Hsueh </Td> <Td> October 16 , 2006 ( 2006 - 10 - 16 ) </Td> <Td> 2ALH06 </Td> <Td> 9.05 </Td> </Tr> <Tr> <Td colspan="8"> Lily moves into Barney 's apartment and the trials , troubles , and tribulations may be a bit too much for him to handle . </Td> </Tr> <Tr> <Th> 28 </Th> <Td> 6 </Td> <Td> `` Aldrin Justice '' </Td> <Td> Pamela Fryman </Td> <Td> Jamie Rhonheimer </Td> <Td> October 23 , 2006 ( 2006 - 10 - 23 ) </Td> <Td> 2ALH05 </Td> <Td> 9.59 </Td> </Tr> <Tr> <Td colspan="8"> Barney takes it on himself to please Marshall 's disgruntled law professor , while Lily gets a job at Ted 's architecture firm and tries to teach his boss a big lesson . </Td> </Tr> <Tr> <Th> 29 </Th> <Td> 7 </Td> <Td> `` Swarley '' </Td> <Td> Pamela Fryman </Td> <Td> Greg Malins </Td> <Td> November 6 , 2006 ( 2006 - 11 - 06 ) </Td> <Td> 2ALH07 </Td> <Td> 8.22 </Td> </Tr> <Tr> <Td colspan="8"> Marshall starts dating a woman and they really hit it off , but Barney and Ted tell him he has to dump her because she has `` crazy eyes '' . </Td> </Tr> <Tr> <Th> 30 </Th> <Td> 8 </Td> <Td> `` Atlantic City '' </Td> <Td> Pamela Fryman </Td> <Td> Maria Ferrari </Td> <Td> November 13 , 2006 ( 2006 - 11 - 13 ) </Td> <Td> 2ALH08 </Td> <Td> 9.33 </Td> </Tr> <Tr> <Td colspan="8"> Marshall and Lily , together again , decide to elope in Atlantic City , and they gather Barney , Ted and Robin to take part in the wedding . </Td> </Tr> <Tr> <Th> 31 </Th> <Td> 9 </Td> <Td> `` Slap Bet '' </Td> <Td> Pamela Fryman </Td> <Td> Kourtney Kang </Td> <Td> November
<Table> <Tr> <Th> No . overall </Th> <Th> No. in season </Th> <Th> Title </Th> <Th> Directed by </Th> <Th> Written by </Th> <Th> Original air date </Th> <Th> Prod . code </Th> <Th> U.S. viewers ( millions ) </Th> </Tr> <Tr> <Th> 23 </Th> <Td> </Td> <Td> `` Where Were We ? '' </Td> <Td> Pamela Fryman </Td> <Td> Carter Bays & Craig Thomas </Td> <Td> September 18 , 2006 ( 2006 - 09 - 18 ) </Td> <Td> 2ALH01 </Td> <Td> 10.48 </Td> </Tr> <Tr> <Td colspan="8"> The gang tries to help Marshall get over Lily . Barney takes him to a strip club , and Ted takes him to a Yankees game . Marshall finds a credit card trail that leads to Lily 's hotel in the city , but the guys try to keep him from going to see her . </Td> </Tr> <Tr> <Th> 24 </Th> <Td> </Td> <Td> `` The Scorpion and the Toad '' </Td> <Td> Rob Greenberg </Td> <Td> Chris Harris </Td> <Td> September 25 , 2006 ( 2006 - 09 - 25 ) </Td> <Td> 2ALH02 </Td> <Td> 9.14 </Td> </Tr> <Tr> <Td colspan="8"> Barney teaches Marshall how to pick up women . When things start to go sour for an awkward Marshall , Barney steps in and wins the women over ... for himself . Lily returns from her art experience . While helping her look for a new apartment , Ted gets sick of hearing about Lily 's amazing summer in San Francisco . </Td> </Tr> <Tr> <Th> 25 </Th> <Td> </Td> <Td> `` Brunch '' </Td> <Td> Pamela Fryman </Td> <Td> Stephen Lloyd </Td> <Td> October 2 , 2006 ( 2006 - 10 - 02 ) </Td> <Td> 2ALH03 </Td> <Td> 9.32 </Td> </Tr> <Tr> <Td colspan="8"> When Ted , Robin , and the gang spend the weekend with his parents , Ted is stunned when a family secret that changes things forever is unveiled at brunch . Meanwhile , Marshall and Lily find it difficult to control themselves when they are forced to spend time together with Ted 's parents . </Td> </Tr> <Tr> <Th> 26 </Th> <Td> </Td> <Td> `` Ted Mosby , Architect '' </Td> <Td> Pamela Fryman </Td> <Td> Kristin Newman </Td> <Td> October 9 , 2006 ( 2006 - 10 - 09 ) </Td> <Td> 2ALH04 </Td> <Td> 9.09 </Td> </Tr> <Tr> <Td colspan="8"> After Robin insinuates that Ted 's job is boring , Barney sets out to convince his buddy otherwise . As the guys test out the pick - up line , `` Ted Mosby , Architect '' on the ladies , they realize it really works . But when Robin hears that Ted is parading around town picking up girls , she is hot on his heels to discover the truth . </Td> </Tr> <Tr> <Th> 27 </Th> <Td> 5 </Td> <Td> `` World 's Greatest Couple '' </Td> <Td> Pamela Fryman </Td> <Td> Brenda Hsueh </Td> <Td> October 16 , 2006 ( 2006 - 10 - 16 ) </Td> <Td> 2ALH06 </Td> <Td> 9.05 </Td> </Tr> <Tr> <Td colspan="8"> Lily moves into Barney 's apartment and the trials , troubles , and tribulations may be a bit too much for him to handle . </Td> </Tr> <Tr> <Th> 28 </Th> <Td> 6 </Td> <Td> `` Aldrin Justice '' </Td> <Td> Pamela Fryman </Td> <Td> Jamie Rhonheimer </Td> <Td> October 23 , 2006 ( 2006 - 10 - 23 ) </Td> <Td> 2ALH05 </Td> <Td> 9.59 </Td> </Tr> <Tr> <Td colspan="8"> Barney takes it on himself to please Marshall 's disgruntled law professor , while Lily gets a job at Ted 's architecture firm and tries to teach his boss a big lesson . </Td> </Tr> <Tr> <Th> 29 </Th> <Td> 7 </Td> <Td> `` Swarley '' </Td> <Td> Pamela Fryman </Td> <Td> Greg Malins </Td> <Td> November 6 , 2006 ( 2006 - 11 - 06 ) </Td> <Td> 2ALH07 </Td> <Td> 8.22 </Td> </Tr> <Tr> <Td colspan="8"> Marshall starts dating a woman and they really hit it off , but Barney and Ted tell him he has to dump her because she has `` crazy eyes '' . </Td> </Tr> <Tr> <Th> 30 </Th> <Td> 8 </Td> <Td> `` Atlantic City '' </Td> <Td> Pamela Fryman </Td> <Td> Maria Ferrari </Td> <Td> November 13 , 2006 ( 2006 - 11 - 13 ) </Td> <Td> 2ALH08 </Td> <Td> 9.33 </Td> </Tr> <Tr> <Td colspan="8"> Marshall and Lily , together again , decide to elope in Atlantic City , and they gather Barney , Ted and Robin to take part in the wedding . </Td> </Tr> <Tr> <Th> 31 </Th> <Td> 9 </Td> <Td> `` Slap Bet '' </Td> <Td> Pamela Fryman </Td> <Td> Kourtney Kang </Td> <Td> November
episode where lily and marshall get back together
episode where lily and marshall get back together
Atlantic City
Atlantic City