As you haven't used your Yahoo account for 9 years, there's no way to recover it. You can try to create a new account using the same email address. Here's the link to create a new Yahoo Mail account.
If your old email address is not available for use, you can recover your Facebook account using another email address or your phone number. Everything is explained in this article on how to recover a Facebook account.