Get the flagpole with the last two digits of your time being the same number. The number of fireworks that will appear depend on which number was the same. For example, "11" will result in a single firework, while "22" will show two fireworks, etc. Additionally, certain numbers will also give you a bonus item, as follows.
shey, f wrv rtgawvep
If you touch the flagpole and the last 2 digits match (11, 22, etc.), fireworks will appear. The number of fireworks depend on the last 2 digits. 11 is 1 firework, 22 is 2 fireworks and so forth.
Complete a level and if the last 2 digits of the timer match excluding 00, Fireworks will appear and Toad will also give you an Item.Below is the list of the items unlocked by their matching timer digits.
Proceed through most of the Ghost House level towards the normal exit. Get to the room that is almost completely made of false walls, near Star Coin #3. Go to about the middle of the room and find the Boo near a signpost and coins above you. The path to the secret exit is slightly in the air and to the left. Use wall jumps or the Squirrel suit to reach the secret door up there. It will open to a room with lots of coins and a red pipe that leads to the secret flagpole.
Upon completing the game once and unlocking Superstar Road, the Propeller Hat and Penguin Suit power-ups [from New Super Mario Bros. Wii] are made available from the Toad Houses located there.Once obtained, they can used in any level in the game.