Investors & landlords

See "mixed-use mortgages" in publication 936. It tells you that home equity portion of the loan is paid off before home acquisition debt.