Ben transferred property to his newly formed corporation, BCD Inc. The property had an adjusted basis to Ben of $40,000 and a fair market value of $50,000 on the date of the transfer. On the same day, and in exchange for the property that he transferred to BCD Inc., Ben received a payment of $15,000 and 100 percent of BCD Inc.'s only class of stock. The stock had a fair market value of $35,000. How much gain was recognized by Ben as a result of this transaction?