Complex sentence: While Andy investigates the murder, he becomes enamored of Shirl, and ensures that she is permitted to stay in the apartment until the end of the month.
Split into simpler sentences: While Andy investigates the murder, he becomes enamored of Shirl. He ensures that she is permitted to stay in the apartment until the end of the month.