find the time period of oscillation of the system.