Selling of two homes in same year

Hi..I purchased a property "A" in 2007 and I lived in it until Dec 2016. Thereafter, I rented the property and purchased a new property "B", which became my primary residence. The renter left in Oct 2019. I renovated the property "A" and put it up for sale. I was not able to sell the property "A" until Feb 2021. Also, in Feb 2021, I decided to purchase a new property "C", which would become my primary residence. I have put the property "B" for sale as well and hope to sell by March / April 2021. Will I have to pay capital gains tax on either property "A" or "B" OR or both properties "A" + "B", even if the gain on both properties combined is less than 500K? I am married and have been filing joint tax returns.