How do you get past world 7 haunted house on super Mario bros?

enter through the bottom right door. jump up to hit the invisible block ( where the hands are pointing) bring the spring over to the button on the block hit it and jump onto the moving things going up and down. go through the door. when entered hit the blue p button. if u go to the left you will get to the red flag. go to the right for the regular flag

red flag- go left after hitting the button. hit the shiny block. a vine will come up. get up to the block and climb the vine. this can be a challenge because your timed. once up go through the door and jump on the flag

black flag- go right after hitting the button jump block after blocks and avoid the ghost run (hold y) to get there in time go through the door jump on the flagpole