The usual or correct path probably did not occur with your Possession of this MacBook;
this would set the tone of actual Ownership. And predates present action, outlined here:
• What to do before you sell, give away, or trade in your Mac - Apple Support
https://support.apple.com/en-us/HT201065
#7: instructions, is where you'd need to be -- if not already set up ahead of this issue..
"The best way to restore your Mac to factory settings is to erase your hard drive and reinstall macOS."
"..After macOS installation is complete, the Mac restarts to a setup
assistant that asks you to choose a country or region. To leave the Mac
in an out-of-box state, don't continue setup. Instead, press Command-Q
to shut down the Mac. When the new owner turns on the Mac, the setup
assistant guides them through the setup process..."
A back-study of the status of this macbook is not addressed here;
so that is where it should have been, on arrival in your possession.
And to save any works you may have in that Mac, needs saving to
an external USB drive. A backup. Then if there's no Admin PW lock
or other firmware security, you may proceed. As the Admin/owner.
