Below is an instruction that describes a task. Write a response that appropriately completes the request in Swahili. Please answer in Swahili.

### Instruction:
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?

### Response:
 Idadi ya wanafunzi wenye macho ya kahawia na nywele za rangi yoyote ni 6 / (1/2) = <<6/(1/2)=12>>12.
Idadi ya wanafunzi wenye macho ya kahawia na nywele nyeusi ni 12 / 2 = <<12/2=6>>6.
Idadi ya wanafunzi wenye macho ya kahawia na nywele za rangi nyingine ni 12 - 6 = <<12-6=6>>6.
Jumla ya wanafunzi ni 12 + 6 = <<12+6=18>>18.