Complex sentence: Then she realizes that the plumber is a ghost and when he confesses he takes out Aiden's soldier out of the tub which was the reason for the plumbing problem.
Split into simpler sentences: Then she realizes that the plumber is a ghost. When he confesses to this, he takes out Aiden's soldier out of the tub, which was the reason for the plumbing problem.