Complex sentence: Marshall finally tires of Ted's never-ending presence and his invasion on the married couple's personal space, so he decides to buy a new apartment with Lily.
Split into simpler sentences: Marshall finally tires of Ted's never-ending presence and his invasion on the married couple's personal space. He decides to buy a new apartment with Lily.