You'll need to take the computer to an Apple Store of an Apple Reseller to have them remove the firmware password. See the last portion of the 2nd link.
How to set a firmware password on your Mac - Apple Support
If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing. Use 2nd link if not near an Apple Store or aren’t in the US. Take the original purchase receipt with you.