Complex sentence: Quentin was being haunted by the ghost of Edith, and thought that Barnabas Collins was plotting against him.
Split into simpler sentences: Quentin was being haunted by the ghost of Edith. And thought that Barnabas Collins was ploting against him.