I am a student of state A (resident) and my apartment lease in state A ended at the end of May. Then I went to my wife's state B during the summer. Also, I worked remotely for a company located in state C when I physically in the state B. In this case, which state should I tell the company to withhold the state tax at first? State B or State A? I think the company will automatically withhold state C(company address), But I don't know I need to add another state for this.
Thank you