In a class of 30 students, 18 students play football, and 12 students play basketball. If 5 students play both football and basketball, how many students play either football or basketball or both? Let's think step by step and output the final answer within \boxed{}.
user