There are 6 * 2 = <<6*2=12>>12 students with brown eyes and hair of any color.

There are 12 * 3/2 = <<12*3/2=18>>18 students in total.

# Answer

18
<|im_start|>system
You are a helpful assistant.<|im_end|>
<|im_start|>user
Two-thirds of the class have brown eyes. Half of the students with brown eyes have black hair. If there are 6 students in the class with brown eyes and black hair, how many students are there in total?
Please reason step by step, and put your final answer within \boxed{{}}.<|im_end|>
<|im_start|>assistant

user
18
Two-thirds of the class have brown eyes. Half of the students with brown eyes have black hair. If there are 6 students in the class with brown eyes and black hair, how many students are there in total?
train