1120S - Asset entry - how is the gain calculated?

Need help understanding where the gains of $7901 and 6201 come from on the Asset Entry Wkst

 

ass_entry.jpg