A corporation decided to repurchase stock of a shareholder who recently died. The corporation was in existence for three years and had lost $50,000 during this period. The original shareholders had invested $25,000 in the business, of which the deceased had invested $5,000. How much may the corporation pay for the stock of the deceased? Explain.