Bubba exchanges a warehouse for a building she will use as an office building. The adjusted basis of the warehouse is $600,000, and the fair market value of the office building is $350,000. In addition, the taxpayer receives cash of $150,000. What is the recognized gain or loss and the basis of the office building?