Beat are produced when two sounds of different frequency superimposed in the medium
Here beats are defined as number of maximum intensity that we heard during the superposition
So here we have
[tex]f_{beat} = |f_1 - f_2|[/tex]
so difference of two frequency must be same as number of beats heard in 1 second
so here
[tex]|f_1 - f_2| = 30 beats/s[/tex]