A corporation exchanges machinery plus $20,000 cash for new machinery worth $34,000. At the time of the exchange, the corporation's adjusted basis in the machine it exchanges is $16,000 and its fair market value is $14,000. What amount will the corporation recognize on the exchange and what will be its depreciable basis in the new machine?