How to file a 1099-S of a property I did not own

I have received a 1099-S for a property my grandparent owned after they passed away in 2015.

The property went up for tax sale in 2024 by the State to pay off the back taxes on the building and the amount over the back taxes was collected from the State by a lawyer and then distributed to myself and a couple of other family members and I have received a 1099-S for my portion I received from the state and the 1099-S was also filed by the local county government 

How or where do I file the 1099-S Proceeds from real Estate Transactions when doing my taxes.