Paula receives a liquidating distribution from Pell Corporation. Paula's basis for her Pell stock is $10,000. In exchange for her stock, Paula receives real estate with an $8,000 basis and a $15,000 fair market value that is subject to a $2,000 mortgage, and also receives cash of $5,000. What is Paula's basis in the real estate she received?
A. $3,000.
B. $8,000.
C. $15,000.
D. $20,000.