Every student in a discrete mathematics course is either a computer science or mathematics major or is a joint

Question

Every student in a discrete mathematics course is either a computer science or mathematics major or is a joint

major in these two subjects. How many students are in the class if there are 38 computer science majors (including joint majors), 23 mathematics majors (including joint majors), and 7 joint majors?

Math