Complex sentence: Hal figures out that the way to make up with Lois is to have sex, so he buys gas masks so that they can enter their currently toxic house.
Split into simpler sentences: Hal figures out that the way to make up with Lois is to have sex. He buys gas masks so that they can enter their currently toxic house.