The length L of a simple pendulum varies directly as the square of its period…