State tax filing

Hi, I am exactly in similar situation but in my case income in box 17 for the resident state (MA) is not zero? How do I claim the state income tax back. My situation below. 

 

I lived and worked in NY but same state wages are reported in box 16 for NY and CA. The reason I believe I have two W-2 from same employer because under employee name and address, it has my residence address as California. How do I claim my CA state income tax that has been withheld?