In a classroom, there are 24 students who are members of the Science Club, 18 students who are members of the Math Club, and 12 students who are members of both clubs. How many students are members of either the Science Club or the Math Club or both? Let's think step by step and output the final answer within \boxed{}.
user