An opera glass has a length of 30 cm and its magnifying power is 5 when used to view distant objects. Calculate the focal length of its lenses.