Jack transferred property with an adjusted basis of $45,000 to JKL Corporation. There was a $35,000 mortgage on the property. In exchange for the transferred property, Jack received stock with a fair market value of $65,000 and $25,000 cash, and the corporation assumed the liability on the property. How much gain is recognized by Jack?
A. $0
B. $20,000
C. $25,000
D. $35,000