Since you are selling your computer, please see the below article for properly preparing the Mac for transfer –
What to do before you sell, give away or trade in your Mac - Apple Support
Please see the below articles for info about recovery mode in macOS. You may need a usb keyboard to get the Mac to recognize the following key combinations at startup:
To start up your Mac in recovery mode, press the power button. When you hear the startup chime, press and hold the Command-R keys (⌘R) until you see the Apple logo and the progress bar.
If Recovery mode doesn't work, maybe use Option-Command-R or Shift-Option-Command-R to boot from macOS over the internet.
Mac startup key combinations - Apple Support
Also, please see the below article for information on creating a bootable installer for a Mac –
How to create a bootable installer for macOS - Apple Support