In an exchange transaction, Jesse transferred land worth $50,000 to his 80%-controlled corporation in exchange for additional stock of the corporation worth $20,000 and cash of $20,000. The basis of the property to him was $15,000 and was subject to a $10,000 mortgage, which the corporation assumed. Jesse must report a gain of how much?