Arrange powerful plants in a row and at the end try to grow 2 potatoes because zombies take a while to eat and this is the golden chance for you. All the headshots can kill the zombie quickly.