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

### Instruction:
Ms. Cole teaches math in three levels of classes in her school. There are four times as many students in Ms. Cole's fourth-level math class as in her sixth-level math class. The number of students in her seventh-level math class is twice that in the fourth-level math class.  If Ms. Cole's sixth-level class has 40 students, how many math students does Ms. Cole teach?

### Response:
 Ikiwa darasa la hesabu la ngazi ya sita la Bi. Cole lina wanafunzi 40, darasa la hesabu la ngazi ya nne lina wanafunzi 4*40 = 4*40 = <<4*40=160>>160.
Darasa la hesabu la ngazi ya saba lina wanafunzi 2*160 = <<2*160=320>>320.
Jumla yake, Bi. Cole anafundisha hesabu kwa wanafunzi 320+160+40 = <<320+160+40=520>>520.