Party A owns an apartment with a FMV of $220,000, an adjusted basis of $100,000, and has a $80,000 mortgage. Party B owns an apartment with a FMV of $250,000, an adjusted basis of $175,000, and has a mortgage of $150,000.
Party A transfers their apartment to Party B in exchange for Party B's building plus $40,000 cash. Party A assumes the mortgage ($150,000) from Party B's property, and Party B assumes the mortgage ($80,000) from Party A's apartment.