Youngsters mixing in studying and swimming

A: You should stop studying in this coeducational school and continue your education in another one where there is no mixing. If anyone gives up something for the sake of Allah, He will compensate them with something better.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.