@alina A bit tangential, but reminds me of an old Polish novel for teenagers called "A way to trick Alcibiades".
The plot goes like this: teenagers in a school don't want to study so they develop ways to distract teachers. A history teacher nicknamed Alcibiades is particularly tough but you can distract him with historical trivia.
The plot twist is he's using this method to trick them into learning history by learning trivia to "distract" him. They end up winning a prize for excellence.