Multi state tax filing query

My daughter goes to Med School in Philadelphia (Pennsylvania) and we (her parents) live in California. She helped out with research at school (remotely) during summer and was also working a job in California during summer.  She has 2 W-2s - one from California and one from Pennsylvania. Which state is considered as non-resident for her - California or Pennsylvania? I found this on PA website, but would like to get some confirmation.

 

Parents live out of state, I work and go to college in PA. (custhelp.com)