Form 6198

Considering Schedule E, how do I know whether all my investment is at risk or not, if I have losses on both properties?  I had purchased my property B with the cash that I had borrowed from a bank by refinancing my property A (with cash-out).