Deductions & credits

It wasn't a loss - the sale price was also $84,000. The $60,000 net proceeds are after the sale expenses and a $18,000 lien on the property. Should that not be part of this equation?