Income made in Texas cannot be deducted from Montana Income

I am military from Montana stationed in Texas. I received 2 1099-Rs that have Texas "taxes" taken out in block 15 and need to do an amendment. When I input the amounts into the federal income section, it is automatically included in the Montana income section and I cannot figure out how to deduct it.