State Tax: State of Domicile screen

On the screen "State of Domicile", there is a question for "where were you domiciled":

 

So for a married couple filing jointly while owning a home in state A, if person X works in another state (California) for more than 183 days (rents an apartment too), is the state of domicile CA or state A for person X on this screen?

 

Also is person X resident or nonresident for tax purposes?