Forgot my Yahoo Password, now I have my gmail on yahoo?

I was trying to enter my yahoo email today but I accidently logged out and didn't remember my password. I went to the sign-in helper and added my recovery email (which is a gmail one), I put on the code, but then instead of logging into my yahoo account, I logged my gmail account to yahoo. They seems connected somehow, but are not either, the folders are all empty.
How do I revert back? I really need my yahoo account!