A tuning fork produces 8 beats per second when sounded together with a fork of frequency 340 Hz. When the prongs of tuning fork C are filled a little, the number of beats produced per second decreases to 4. Find the frequency of the tuning fork C before filling its prongs.