From the Super Mario Wiki
Retrieved from "https://www.mariowiki.com/index.php?title=Level_E2-3&oldid=2698839"
Throughout most of the course is an arrangement of Purple Conveyor Rivets placed on different levels. At the top are enemies such as Fire Piranha Plants and Shy Guys that are initially confined into small rooms and cannot affect the Minis. The toys start at the left side of the stage, on a platform right above the Goal Door; however, there is a wall of Yellow Color Blocks that prevent access to it. To disable the blocks, the Minis should traverse the level to the other side while avoiding two Shy Guys and reach a Yellow Color Switch via Purple Conveyors and a Ladder. In doing so, they also deactivate the Color Blocks that held the aforementioned enemies confined, requiring the player to guide the Minis carefully on the way back to the exit.
The M Coin is located at the far left of the series of enemy rooms at the top. The coin is completely surrounded by Yellow Color Blocks. After pressing the Yellow Color Switch to turn the blocks off, the Minis should head back towards the coin and use some Purple Conveyors to collect it.
The following data applies in both the Nintendo 3DS and the Wii U versions of the game.