W2 in two states

Hi, 

I have two W2's one for 4 month in Texas (home residence) and the other one is for 8 months that I have been living and working in Arizona. I rent an apartment in AZ  but my driver license still with TX same as my car plates. I am not sure if I ma going to leave in AZ permanently. how do I need to report both W2? in the same filing? or do I need to file each W2 separate? my wife still in Texas and we always file jointly

thank you!

Roberto