State tax filing

@ErnieS0 My son earned income from NY (Amount A) and CA (Amount B) , living in NJ. 

 

For CA state, it only include the earnings from CA (Amount B). However, in NY state form, it uses the Federal AGI amount. Should it be the income earned from NY only (Amount A)? Where I can exclude CA earning from NY State?