Cost Basis Adjustments on sale of inherited property

I inherited my grandmother's property in 1977 and sold it in 2018. I have the FMV from the probate records at the time of her death. I have a 1099S that shows the gross sale amount but not the net sale amount. What are the allowable closing costs that I can use to either adjust the cost basis upward or reduce the gross sales amount to the net sales amount and where do I report it? I have a detailed closing statement that includes the sales commissions, transfer tax information, and other costs that were deducted from the gross sales amount before I received the distribution.