Hi there!
1.
The period of a pendulum can be calculated using the following equation:
[tex]\large\boxed{T = 2\pi \sqrt{\frac{L}{g}}}[/tex]
T = period (s)
L = length of string (m)
g = acceleration due to gravity (m/s²)
Plug in the values:
[tex]T = 2\pi \sqrt{\frac{4}{9.8}} = \boxed{4.014 s}[/tex]
2.
Calculate the period:
[tex]T = \frac{\text{Time}}{\# of oscillations} = \frac{5}{20} = \boxed{0.4 s }[/tex]
Frequency is the reciprocal of the period, so:
[tex]f = \frac{1}{T} = \frac{1}{0.4} = \boxed{2.5 Hz}[/tex]