I understand you purchased a "refurbished" Mac with a macOS version prior to Monterey, and you want to upgrade it to Monterey (or perhaps a later version required by the school). Is that correct?
How are you attempting to upgrade it? The reason for asking is that normally, these instructions should work: Update macOS on Mac - Apple Support. Did you try that?
If you are attempting to erase and reinstall macOS using macOS Recovery, that's perfectly ok too. Follow these instructions: Erase and reinstall macOS - Apple Support.
Let me know which of those upgrade options you are attempting and I'll try to point you in the right direction. I'm a little askance regarding purchasing "refurbished" Macs from anyplace other than Apple since most of the time those resellers are misrepresenting what it means. A Mac that is being resold should be literally indistinguishable from that Mac when it was originally sold by Apple. That means the very first thing you should encounter upon initially turning it on should be a language selection screen. If you did not encounter that, then it was not properly prepared for sale, and you should seriously consider returning it for a full cash refund.