I don't remember how long ago exactly, like 2 or 3 years, I watched a show on Netflix about, I think, teens: 2 guys one was kind of an idiot and loves sumo, the other one was an inventor, I think his name was Sam and a girl who was very smart. They do some kind of supernatural adventure like go to a different world where there are weird creatures. I'm not sure but I think it was a video game before an animated series I remember in one episode that something happened to the girl and she turned into kind of an idiot and the two guys had to write some long essay for her.
Could this be Cloudy with a Chance of Meatballs: The TV series?
It features a girl named Sam and an inventor boy named Flint and is set in a high school, which potentially accounts for the essay-writing element.