Capacitors and inductors resist alternating current, and the resistance changes with frequency. Enter the frequency and a capacitance, an inductance, or both.
Xc = 1 / (2 x pi x f x C), falling as frequency rises. XL = 2 x pi x f x L, rising as frequency rises. Where they cross, the pair resonates.