Melvin receives stock as a gift from his uncle. The adjusted basis of the stock is $30,000 and the fair market value is $38,000. Melvin trades the stock for bonds with a fair market value of $35,000 and $3,000 cash. What is his recognized gain on the sale of stock and the basis for the bonds