One loan will be refinancing another so interest deductibility will remain. But you will end up with loan 2 being mixed purpose. Part of the interest will be for property A and part for property B so you will need to apportion interest.
If both are interest only this should be easy to do. But...