Determining capital gains for sale of primary residence and adjoining property in two transactions

This year we sold our primary residence in two transactions. The first transaction included the house and its property. Three months later we sold the adjoining property that included a barn.  Looking at IRS publication 523 it appears that both transactions can be treated as a single transaction as far as reporting the sale of a primary residence and determining capital gains. Am I correct in my interpretation?