Complex sentence: Pupils still have some free space for electives, which is not taken up by compulsory and profile subjects; they can pick two subjects from other profiles.
Split into simpler sentences: Pupils still have some free space for electives, which is not taken up by compulsory and profile subjects. They can pick two subjects from other profiles.