Installment Sales

I have hard time understanding installment sales problems. Can anyone help me solve this problem? A sold land with an adjusted basis of $20, 000 and paid a selling expense of $1,000. The buyer assumed an existing mortgage of $15,000 and agreed to pay A $10, 000 over the next 5 years starting from this year. A's installment sale income for the current year is? The answer is $800. Do you know why?