In a class of 50 students, 18 take music, 26 take art and 2 take both art and music. How many students in the class are not enrolled in either music or art? The answer I came up with is 8. Would that be correct?

yes it would

To find the number of students who are not enrolled in either music or art, we need to subtract the total number of students who are enrolled in music or art from the total number of students in the class.

First, let's find the total number of students who are enrolled in music or art:
- We know that 18 students take music and 26 students take art.
- However, 2 students are counted in both music and art. To avoid double-counting them, we need to subtract this overlap.
- So, the total number of students who are enrolled in music or art is (18 + 26) - 2 = 42.

Now, let's subtract this number from the total number of students in the class:
Total number of students in the class = 50
Students enrolled in music or art = 42

Number of students not enrolled in either music or art = Total number of students - Students enrolled in music or art
= 50 - 42
= 8

Therefore, your answer of 8 students not enrolled in either music or art is correct.