refinance my two family home

I refinance my 2 family home-lived in 1 unit and rented the other unit. I received 2 1098 this year, how can I deduct the closing costs and which closing costs are deductible (loan costs, recording fees, prepaid insurance premium, prepaid interest, property taxes, initial escrow payment at closing; these are the items listed on my closing cost details) ? Also, I paid $400 on the points of the new loan. 

 

thanks in advance!!