Is Sale of Home Based on Refinanced Loan or Original Loan?

I sold my home in 2022 but it was refinanced in 2020.  When entering information for the sale of the home to find the adjusted costs basis, do I use the information from the original purchase (2010) or the information from the refinanced loan (2020)?

 

What do I do if I no longer have the closing statement from the original purchase of the home?