A tuning fork A of unknown frequency produces 7 beats per second with a standard 300Hz tuning fork B. When a small piece of wax is attached to fork A, its frequency decreases by 2Hz and now 5 beats per second are heard with fork B. Determine the original frequency of fork A.