Swimmer tells pupils to mix sport and studies