Your mortgage company should supply a Form 1098 for you which will have the amount for line 2. You can reference this article for more information.
https://turbotax.intuit.com/tax-tips/home-ownership/deducting-mortgage-interest-faqs/L4a9KF9mI