In a class of 30 students, 40% are boys. If 25% of the boys and 20% of the girls are selected for a math competition, how many students in total are selected for the competition? Let's think step by step and output the final answer within \boxed{}.
user