Buying the same home twice

I bought our home in the mid-80's for $40,000, 25 years later through divorce, I bought the ex's share of the home for $100,000. Now 10 years later, I sell the house for $185.000. My question is how much would be a capital gain?