State tax filing

Complete a federal return first, then a non resident MA return and finally a resident NYS return. NYS will give you credit for any tax paid to MA.