Question about form 4797

Let’s say I sold machinery for $4000 but I bought it for $10000 that I had for 5 years and it was fully depreciated. What would I put in lines d,e,f, and g or form 4797?