Here is how the Element of Wisdom chose Sunset Shimmer in The Tale of The SquarePants Master Ship Builders.
Pongolo Pete: So, SpongeBob. What's our next destination now?
SpongeBob SquarePants: (looking at the map) We're going to the Pride Lands.
Queag: Let's hop we'll make it before Merlock does. Who knows what kind of evil scheme he has up his sleeve.
Meanwhile with Merlock.
Merlock: I take it you do anything for the share of treasures.
Captain Bonemeal: We're listening.
Gremlin Prescott: We'll need your help retrieving the elements of harmony.
Dijon: You'll be handsomely rewarded from Merlock.
Ribbs: Sounds good to me.
Kolestra: I for one do anything to earn more treasures.
Spiny: Duh, Me too, Kolestra.
Captain Bonemeal: Very well, Merlock. Here's the deal, You help us get our revenge against Captain Stubbs and hiss crew and We'll help you get the elements. (sticks out his hand and shook Merlock's)
Back with the crew the very next morning.
Princess Luna: Look.
Titanic: We're at the Deep African Jungles.
Britannic: We could be close to the Pride Lands
SpongeBob SquarePants: Come on, Everybody. Let's go find that element.
Twilight Sparkle: Right.
Then, Sunset found it.
Sunset Shimmer: Guys, Look!
Olympic: Bravo, Sunset!
Titanic II: Well done!
Sunset Shimmer: (notice the Element of Wisdom is glowing) Why's it glowing?
Twilight Sparkle: SpongeBob, What's happening?
SpongeBob SquarePants: It's the Element of Wisdom and it's chosen, Sunset!
Sunset Shimmer: I don't believe it!
As the Sunsets, They made it to the Pride Lands.
Simba: Look. There's SpongeBob!
Nala: And he's got friends along with him!
SpongeBob SquarePants: Hey there, Simba!
Simba: Hey, SpongeBob! Great to see you!
Titanic: What a find kingdom you have, Simba.
Timon: Make yourselves at home.
Pumbaa: What's ours it's yours.
Kovu: So, What brings you guys here?
SpongeBob SquarePants: We just found the Element of Wisdom here in Africa.
Britannic: Mind if we crash here for tonight?
Later that night on the Pride Rock, tents were set up.
Titanic: That is a magnificent tent.
SpongeBob SquarePants: It's a castle tent which has lots and lots of room for everyone and everypony.
Plankton: Way to go, SpongeBob!
Rainbow Dash: Awesome!
Patrick Star: You said it!
Pinkie Pie: (has Plankton in her mane) How're you feeling, Plankton? Comfy!
Plankton: i sure am, Pinkie. Thanks.
SpongeBob SquarePants: Goodnight, Everybody.