1. You've got to use the switch in the right moment. The moment is right when the ladybug is left of the 4th bomb from below. The bomb must land right on the ladybug's head.
2. Wait until the pumpkin removes the wood blocks on your left. Then go down and smash the yellow blocks.