Step 1: Represent the total number of students algebraically.
Let the total number of students be \(100x\).
Step 2: Remove the students already accounted for.
10% cleared all sections, that is \(10x\) students. 5% cleared none, that is \(5x\) students. The remaining students are \(100x - 10x - 5x = 85x\).
Step 3: Split the remaining students by section.
Of these \(85x\), 30% cleared only section 1, 20% cleared only section 2 and 10% cleared only section 3. Together this is \(30 + 20 + 10 = 60\%\) of \(85x\), leaving \(40\%\) of \(85x\) for section 4 only.
Step 4: Use the given count for section 4 to solve for x.
We know \(0.40 \times 85x = 1020\), so \(34x = 1020\), giving \(x = 30\).
Final Answer:
Total students \(= 100x = 100 \times 30 = 3000\).
\[ \boxed{3000} \]