Complex sentence: For President, Vice President, General Secretary and Treasurer, they are voted by the whole secondary school, while classroom representatives are voted by their individual class.
Split into simpler sentences: For President, Vice President, General Secretary and Treasurer, they voted by the whole secondary school. While classroom representatives are voted by their individual class.