Complex sentence: The twins were swapping their places in the house and their task was to trick the others that they were one and the same person.
Split into simpler sentences: The twins were swapping their places in the house. Their task was to trick the others that they were one and the same person.