Complex sentence: Toby gets the pictures he wanted of him and Pam together and leaves forever, but Michael gets in a final shot when he has Hank the security guard escort Toby from the building.
Split into simpler sentences: Toby gets the pictures he wanted of him and Pam together. As Toby is leaving the office, Michael gets in a final shot when he has Hank the security guard escort Toby from the building.