Let our four accounting majors be A, B, C, and D; our two economics majors be E and F; and our three marketing majors be G, H, and J, as follows:
ABCD EF GHJ
These are the possible arrangements:
ABEGH, ABEGJ, ABEHJ, ABFGH, ABFGJ, ABFHJ, ACEGH, ACEGJ, ACEHJ, ACFGH, ACFGJ, ACFHJ, ADEGH, ADEGJ, ADEHJ, ADFGH, ADFGJ, ADFHJ, BCEGH, BCEGJ, BCEHJ, BCFGH, BCFGJ, BCFHJ, BDEGH, BDEGJ, BDEHJ, BDFGH, BDFGJ, BDFHJ, CDEGH, CDEGJ, CDEHJ, CDFGH, CDFGJ, CDFHJ
There are thirty-six possible arrangements.