The state in which the Taxpayers that claims the student lives if the student is a dependent.
If you are a dependent student and your parents claim you, your primary residence is that state your parents live in.
If you are not a dependent, it is the state in which you live.