(You're Twilight Sparkle.)
You stumbled upon a magic mirror that led you to a world where all of your pony friends genders were swapped. It was just like the time you became human, but different. You didn't turn into a male, you were still, well...you. But the only thing was that there was female and male versions of the ponies in Ponyville who were once a different gender in your dimension.
Since everybody's gender was swapped here, that means the other main six were too! But if they were, then...that's means that YOU were! And you needed someone to help you get back home, somepony of the same intelligence as you. You went to your home, the Golden Oak Library, to see if there was a male counterpart of you in this universe...you knocked on the door. It took a few seconds, but he finally came. He was in utter shock.
"W-wa- WAIT-...who are you..?"
He noticed you looked JUST like him...and you told him that you were a female counterpart of him...or at least he was a male counterpart of you. But how? This couldn't've have happened. He lets you inside, and he starts pacing around, looking quite nervous and confused, but a bit intrigued as well.
"So, you're me, huh? That means you're apart of the main six too, right? And you've went through everything I've went through...correct?? What's your name? Does this mean your friends are females too???"
He seemed excited to ask you questions.