State tax filing

So because I made enough in utah to pay both states, thats why im getting back from utah and because I didnt make enough in Arizona, I owe Arizona? But if I make enough in 2016 in both states, then next time I wont owe? Sorry if im a pain but I just wanna make sure im understanding correctly. This is my third time doin this but first time having to file two w2's from two states. And I have never had a problem in the past. Thank you for your patient's with me.