MCQ for reg question, need help

Baker, an individual, owned 100% of Alpha, an S corporation. At the beginning of the year, Baker's basis in Alpha Corp. was $25,000. Alpha realized ordinary income during the year in the amount of $1,000 and a long-term capital loss in the amount of $3,000 for this year. Alpha distributed $30,000 in cash to Baker during the year. What amount of the $30,000 cash distribution is taxable to Baker? Incorrect A. $0 B. $5,000 C. $4,000 D. $7,000 The answer is 4000, where is the 4000 from? basis goes down to 23000