Question: XYZ Company uses the account aging method to determine its bad debt expense. Last year, the bad debt expense was 5% of sales. The total credit sales were $ 200,000. The beginning balance in the Allowance for doubtful debt was $ 20,000. During the year, a debt of $ 10,000 was written off, while a debt of $2,000 written of in the previous year was recovered. The accounts aging method revealed that $17,000 of accounts receivable may be uncollectible. What is the ending balance in the Allowance for doubtful debt account?