Complex sentence: To the surprise of her colleagues Maggie hands in her notice, but she has second thoughts when Penny reveals that Phil and Brian were seen at a lap-dancing club.
Split into simpler sentences: To the surprise of her colleagues Maggie hands in her notice. But has second thoughts when Penny reveals that Phil and Brian were seen at a lap-dancing club.