The frequency of source A received by the detector
f1=(v−v0v)f ....(i)
The frequency of source B received by the observer
f2=(v+v0v)f ....(ii)
Now number of beats heard by the detector per second i.e.,
Beat frequency =|f1−f2|
=[(v+v0v)−(v−v0v)]
=2v0fv
=2×2×680340
=8 Hz