Deductions & credits

By the way the Capital Gain is not your equity.  Simply selling price - purchase price (cost) + improvements.  So 365-297= 68,000.   And it no longer matters what you do with the proceeds or profit, like putting it into another house.  Rolling over the proceeds stopped back in 1997.