Thank you for writing back. Unfortunately, since you did not access these 2 account for a long time already, I believe they are in frozen state now after being deactivated. If they were hacked before the automatic deactivation process was triggered, then they can still be active today since the hacker accessed them so they will appear active to the Google and Yahoo systems.
In case your accounts were hacked, unfortunately, there is really no way that you can recover the account without undergoing the reset procedures which require you to enter the information that the dynamic questionnaire asks. This is the only way that Yahoo and Gmail verify your ownership of the account.
Also, the verification process is automated -- with no human intervention. Yahoo and Google needs to do this since there are several millions of people using their system and asking for access or password ***** concerns. Since their service is offered for free, it is up to the user to secure their account by providing up-to-date recovery information like answers to security questions, and other contact information, which I believe are absent in the account you are trying to recover.
So to move forward, the only way to recover the account is to undergo the reset process. Please try to remember those forgotten information that Yahoo and Google are asking. You can try to do the reset process over and over until you can provide the exact match of the information on your account.
Now, if the account was not hacked but of frozen state due to dormancy, there is no way to recover the accounts since they are awaiting final deletion from the Yahoo and Gmail servers. They cannot be re-created as well after they are deleted by Yahoo and Google/Gmail.
Another thing, due to dormancy (9 to 12 months), if ever you are able to recover the account through the reset process, all of your emails and other stuffs will be gone already, you only get back the account in blank state.
I believe this is not the kind of answer you wish to hear and this is bad news and I hate to be the bearer of this bad news. But it will be unfair to you and unprofessional of me if I will not give you the real score of the matter and thus give you false hopes.
At this point, you have placed and deposit and I only get credit for my time and help when you rate positive (3 to 5 stars/faces). It is completely up to you if you want to credit me for my time and help in your question by your rating. But please do not rate me negatively if you do not want to pay. You can leave my service unrated and you can request for a refund.
Here is the link about refunding:
I hope at least I have saved you some time.
Thank you for using our service.