Dear Nicole D253
Thank you for posting in the Microsoft Community.
I understand that you have a 25-digit recovery code and you want to recover an account that was previously stolen by a hacker.
You can follow my screenshot guide to try.
First go to the account login screen to enter your account and log in.
Microsoft account | Sign In or Create Your Account Today – Microsoft
Enter the password stage and select Forgot password.
Select I don't have any of these at the Select Authentication Method stage.
You will then be asked to enter the 25-digit recovery code.
I hope that my reply will be helpful to you.
Please feel free to let me know if you have any further updates, thanks.
Best Regards,
Simon - MSFT | Microsoft Community Support Specialist