State tax filing

you must do the nonresident state first.    Then MA taxes all your wages but you get a credit for taxes paid to CA.

there is no reciprocal agreement between the two states.