Al owned all of the outstanding stock of ABC Corporation. Al transferred a building, cash, and IBM stock to ABC Corporation. The adjusted basis and the fair market value of the assets transferred to ABC Corporation, and the amount remaining on the mortgage on the building transferred, were as follows. A building was transferred by Al to ABC Corporation that had an adjusted basis to Al of $20,000, a fair market value of $50,000, and a mortgage of $40,000, that was assumed by the corporation, cash in the amount of $10,000 was transferred, and IBM stock with an adjusted basis to Al of $15,000 and a fair market value of $12,000. In exchange for the assets transferred to ABC Corporation, Al received additional stock of ABC Corporation. How much gain did Al recognize as a result of this transaction?