You have to go to the swim room. Jump and ground pound the tiles, until one of them flips over and will take you to a guy that says he can't find his pineapple, Ground pound the tiles in this room again, and it will take you to a room with boxes. Smash the boxes, and grab the pineapple. Exit the room, and go get Yoshi.