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