at the beginning of the year, the balance in allowance for doubtful accounts is a credit of $797. during the year, previously written off accounts of $107 are reinstated and accounts totaling $767 are written off as uncollectible. the end-of-year balance (before adjustment) in allowance for doubtful accounts should be a.$797 b.$137 c.$767 d.$107