The correct choice is
D. 22 Hz and 42 Hz.
In fact, the beat frequency is given by the difference between the frequencies of the two waves:

In this problem, the beat frequency is
, therefore the only pair of frequencies that gives a difference equal to 20 Hz is
D. 22 Hz and 42 Hz.
Spring potential energy:
E = 0.5 * k * x²
k spring constant
x spring compression
x = √(2 * E / k) = 0.7