The song political system a. was able to solve the problem of nomadic invasions by using its new fire-lance to exterminate nomadic cavalry. b. was run by a female emperor during the late yuan dynasty. c. restored legalism as its supporting official philosophy. d. dissolved its entire military structure to save money for trading activities. e. developed the equivalent of a modern cabinet within its department of state affairs.