Deductions & credits

Thankyou,Now I have another question please? The original buyer stopped paying and gave the property back. We have a new buyer makong insallment payments. So 2 different people made paymens in the 2017 year because it was re sold.  How do I do that?