Two pendulums are set up side by side. One pendulum P, consists of a 0.240 kg mass that is suspended on a string that is 65.0 cm long. The other pendulum, Q, has a 0.360 kg mass that is suspended on a string that is 39.0 cm long. The two masses are pulled aside slightly and released. What is the ratio of the frequency of oscillation of mass P to that of Q?

Period=2PI sqrt(l/g

so, because frequency is 1/period, then

fshort/flong=sqrt(long/short)