Can we file as joint?

I lived and worked in GA from Oct-Dec 2017.  My spouse lived and worked in GA all of 2017.  We were still married on 12/31/2017. We will file a joint federal return for 2017, but should we use the MD or GA address when we file; and can we file MD and GA state returns as joint too - and only include my MD income on the MD return, and include all of our combined GA income on the GA state return?