What are the two forces that keep a pendulum swinging?

the length of the string and the mass of the bob

length and tension of the string

tension and gravity

length of the string and gravity