there are 3 different mathematics courses, 5 different science courses, and 4 different history courses. if a student must take one of each, how many different ways can this be done?