Investors & landlords

Can you please tell me how the Election is made? what form do I do it on?  I Did a refi of my primary residence, and It shows money on my settlement sheet being used to pay off the mortgage of my rental house.  and need to make this election.  I assume the percentage of the mortgage used to pay off the rental house would be the percentage of the Interest I could use on the Schedule E