The objective of the minigame is to plant all 160 plants before time runs out. You can not have more than 32 plants remaining to pass.