A school has two classes, Class A and Class B, with a total of 30 students. The ratio of students in Class A to Class B is 3:2. If 2/3 of the students from Class A and 1/2 of the students from Class B participate in a math competition, how many students in total are participating in the competition? Let's think step by step and output the final answer within \boxed{}.
user