Both math and history are relatively broad subjects at the upper levels, so the selection of upper level elective courses can vary considerably from one college/department to another, particularly at smaller colleges/departments, based on faculty subarea interests. You may want to check the faculty rosters and course offerings in math and history at each college to see if each one covers the subareas that you are most interested in.