Complex sentence: Those girls and boys who had been pupils prior to the amalgamation continued to attend single sex classes as normal until the sale of Queen Mary School.
Split into simpler sentences: Those girls and boys who had been pupils prior to the decision to amalgamate continued to attend single sex classes as normal. This continued until the sale of Queen Mary School.