Out of state residency question.

My child was a full-time college student that graduated in May.  They are working at an out of state internship that was originally slated to last approximately seven months.  It was extended again in 2019 for five months.  Would they need to file a return for both states and residency for both states?