Complex sentence: Buffy tries to place the blame on the guidance counsellor and Anya realizes Halfrek is responsible so Anya summons her because only Halfrek can lift the spell.
Split into simpler sentences: Buffy tries to place the blame on the guidance counselor and Anya puts the pieces together. Realizing Halfrek is responsible, Anya summons her because only Halfrek can lift the spell.