On a loan of $10,000 interest at 9% effective must be paid at the end of each year. The borrower also deposits $X at the beginning of each year into a sinking fund earning 7% effective. At the end of 10 years the sinking fund is exactly sufficient to pay off the loan. Calculate X.