If the bank property sells at foreclosure at a high enough price to pay the mortgages and legal fees, then you will owe nothing to the bank. More likely, however, the bank property will sell at a level that creates a deficiency balance. This will become a judgment lien against you. That judgment lien can attach to your Wells Fargo property. If the Wells Fargo property is your personal residence you can protect it by filing a bankruptcy. Whether that bankruptcy is a chapter 7 or chapter 13 will depend on your overall financial situation.