Another way to say "a school is used for teaching students" is "You would teach students at a school."