Determining the period and frequency of vibration of the mathematical pendulum and the weight on the spring