Here is how Yuna and her friends came home in Yuna and the Return of the Princess.
The scene changes and Yuna is still lying back with his eyes closed but he is in a bed. We can hear birds singing. Yuna wakes up and sits up in the bed. He looks and sees Star Swirl sitting at the bottom of his bed.
Princess Yuna: Star Swirl?
Star Swirl smiles at her, his eyes twinkle and he begins to laugh.
Princess Yuna: Oooohhh! (He laughs with Star Swirl.)
The foals come to the door they are pleased to see her.
They run towards her and leap on the bed. Star Swirl laughs at them. They are laughing and hugging each other, pleased to meet up again.
Kaos comes through the door and spreads his arms.
Kaos (clone): Aaaahh!
Princess Yuna: Kaos!
Kaos claps his hands and strides towards him. The Whole Fairytale Companions, John Smith, Cassim, Prince Derek, Kayley and Garrett. Sharon was the last to see Yuna.
Princess Yuna: Sharon!
Princess Sharon smiled at her, They all stand by the bed and Kaos wipes away a stray tear. Finally, Snowdrop appears at the door, she notice warily at Yuna. Yuna sees her and smiles, Snowdrop smiles back.
The scene changes to Syracuse. In the courtyard, everyone and everypony is gathered.
Sharon is being crowned Princess. She stands on the steps to the hall. Star Swirl lifts the crown high and then places it on Sharon’s head.
Star Swirl the Bearded: Now come the days of Princess Sharon!. May the Autobots and Maximals be blessed.
He moves back and Sharon walks up the steps and turns towards the people. They all clap and cheer.
Princess Sharon: This day does not belong to one Alicorn, but to all. Let us together rebuild this world and the next, that we may share in the days of peace.
The people, ponies and others cheer and clap again.
Princess Sharon: (sings) Out if the great sea to Equestria I am come. In this place I will abide, and my heirs, unto the end of the world.
Sharon walks down to the crowd and to her friends and families.
Princess Sharon: Thank you.
Derek smiles at Sharon, Optimus Prime, The Autobots, Optimus Primal and the Maximals bowed to Sharon. They walk to the foals. They all bow to her.
Princess Sharon: Princess Yuna, You and the others bow to no one or nopony.
She kneels down in front of them and everyone kneels with her. The foals look most embarrassed.
The camera pans back from Syracuse and the picture changes to that of a map.