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

so difference of two frequency must be same as number of beats heard in 1 second
so here
