I am a student at the University of Utah but lived the last 7 months of 2016 in NM for my internship- where do I file taxes?

My residency is in NM and I only worked as a teaching assistant from months january to may in 2016. The rest of the year was in NM for my internship, which is also paid.