You need to allocate your original purchase price and sales price between plant and equipment and land and buildings.
The depreciation schedule should tell you the wdv of plant and equipment on acquisition. If the wdv on sale of plant and equipment represents fair market value for those assets...