Complex sentence: He gets caught having relations with a woman in his office and he and Mrs. Louder have to talk it out, but when he appears, he is wearing a Santa costume.
Split into simpler sentences: He gets caught having relations with a woman in his office, and he and Mrs. Louder have to talk it out. When he appears, he is wearing a Santa costume.