State tax filing

Part of this question regarding  Capital Gains From U.S. Obligation are Tax Free in my state of Maryland but I'm a full time resident. I have a Fidelity brokerage account that I allowed TurboTax to import the data. I'm at the point in my MD return where it shows Capital Gains/Federal Total $xxxx and it's waiting for me to enter Total from US. Obligations. When I look at my 1099B, I see two companies that I'm certain are foregin and sold at a loss, and the amount that shows as a gain is more than the amount of federal total cited above. I hope that entering one of these two number in the blank spots is correct but which one? Please advise