Prove that if the amplitude of harmonic oscillations of a point along x equals A and along y equals B, then the Lissajous figure is inscribed to a rectangle with sides 2A along x and 2B along y. Let the figure touch the horizontal sides of this rectangle at p = 3 points and the vertical sides at q = 4 points. How do the frequencies of these oscillations relate?