Make sure you check and read this first.
http://www.furaffinity.net/view/19746526/
Luckily, Twilight Sparkle managed to unlock the door and check on Poor Sunset. “Twilight! Am I glad to see you!” she shouted with joy, “Don’t worry Sunset, I’ll try to get you out” Twilight replied. Then she used her magic to get her friend unstuck. She kept on going until it was no use. “Any other ideas?” Sunset suggested, “I can’t have my butt wedged and wet here forever you know.”
“No need to panic, I’ve learned a spell awhile back when I was exploring a temple with Daring Do,” she added. Just then, she used her spell to make the toilet bowl a little wider. “Try pulling your self out now,” Twilight told Sunset. Now Sunset tried again as her bottom came out with a pop. “Twilight! You did it! I’m free! Thank you so much!!!” Sunset shouted out with glee as she starts to hug Twilight. “No problem, and you should probably look where you sit next time,” Twilight said as she gives her friend a book. “You should try reading this while you’re on the toilet with a seat later. It’s a very magical book.”
“Thanks Twilight, I can always count on you with such friendly assistance,” Sunset smiled.