If Ms. Cole's sixth-level math class has 40 students, then her fourth-level math class has 4 * 40 = <<4*40=160>>160 students.
Her seventh-level math class has 2 * 160 = <<2*160=320>>320 students.
Therefore, Ms. Cole teaches a total of 40 + 160 + 320 = <<40+160+320=520>>520 math students.
#### 520
The answer is: 520
Below is a math problem. Provide a detailed, step-by-step solution.

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

### Answer:
