<P> In "Goodbye, Toby" Ryan is--now typically--curt with Jim . However, it is discovered later that Ryan was misleading the company's shareholders . In a YouTube video entitled "Whoaa! Check it out!", the Scranton branch watches as Ryan is seen being arrested and escorted out of Dunder Mifflin's New York office by police, much to Michael's dismay and Jim and Kelly's pleasure . </P> <P> In the first episode of Season 5, it is revealed that Ryan has been released with a sentence of community service, and has gotten sober . Michael hires Ryan through the temp agency as the fill - in receptionist . In a deleted scene, he receives a call from David Wallace for Michael . Infuriated that Ryan is back at Dunder Mifflin, Wallace abuses Ryan by telephone in front of the staff . This prompts Michael to defend Ryan and save his job . However, Ryan still exhibits the ego issues he developed in the fourth season . </P> <P> Ryan moves back to the annex with Kelly soon before Pam is scheduled to return . He starts showing off in front of Kelly and the two start kissing passionately . Ryan tells Kelly to break up with Darryl via text message . Darryl responds quickly saying "it's cool", with Kelly overjoyed and Ryan shocked, suggesting he realized he made a mistake . In "Frame Toby", Ryan breaks up with Kelly again, saying he is going with friends to Thailand, but convinces her to have sex with him one last time and give him some traveling money first . </P> <P> Ryan is not seen again until the episode "Dream Team" in which he was seen working at a bowling alley until being hired by Michael Scott to work at the Michael Scott Paper Company . His appearance has changed drastically with having a tan from his trip to Thailand (later revealed to be Ft . Lauderdale) and his hair is dyed blonde . Apparently, he has moved back in with, or at least in proximity to, his parents . </P>

Why did ryan from the office go to thailand
find me the text answering this question