Deductions & credits

I used the HELOC on the 1st home to put as a down payment on second home.  Then once 1st home was sold I paid off the HELOC.