Anglin :
Bought used with a password can't get to factory reset
Ask original owner for Windows password (if this is how it is locked). Or buy recovery media from HP.
If it is BIOS locked, then previous owner is your only help with passwords. It's against the rules of TH to provide help (there's no way we can confirm you're the rightful owner).