If a corporation sells more of its treasury stock at a price that exceeds its costs this excess should be:
A. credited to additional paid-in capital.
B. reported as a gain in the income statement.
C. credited to retained earnings.
D. treated as a reduction in the carrying amount of remaining treasury stock.