How many students are enrolled in a course either in calculus, discrete mathematics, data structures, or programming languages at a school if there are 507,292,312, and 344 students in these courses, respectively; 14 in both calculus and data structures; 213 in both calculus and programming languages; 211 in both discrete mathematics and data structures; 43 in both discrete mathematics and programming languages; and no student may take calculus and discrete mathematics, or data structures and programming languages, concurrently?
-
507+292+312+344-14-213-211-43 = 974