K-1 income and 1099-B income

I bought some UCO shares in 2020 and sold them 2022.  In 2020 and 2021, I reported loss and gain based on information in K-1 and paid additional tax accordingly. 

 

In 2022,  I received both K-1 and 1099-B. 1099-B has cost base (the price that I paid) reported to IRS.  Since I never actually received any money from UCO,  is it reasonable to think that the capital gains that I "accumulated" in 2020-2022 should be the base of my cost? What is the proper way in tax filing? 

 

Thanks for your help.