I went through a divorce in 2018. We had two homes. The primary home went to my ex. The secondary home went to me. I sold it and used the capital gain from the sale of the condo to purchase a townhome