How to sell vacation home without owing profit tax

Consider a property exchange