From the Super Mario Wiki
The objective of the game is to make it across from the exit of one building and into the entrance of another while avoiding various falling hardware tools. If the player gets hit by a hardware tool or fails to get into the other house within the given time, he or she loses the microgame. All the levels seem to be the same difficulty.
Names in other languages