married, living and working in different states; want to file jointly federal; 1 child, day care, tuition interest

married couple, living and working in different states; want to file jointly federal, 1 child, day care, tuition interest, standard deductions.  Can they use CT address on federal return? How would state returns be filed separately, jointly? Need help for states:

He is a MASS full time resident, works in RI

She is a CT full time resident, works in MA