Per the principle of inclusion-exclusion for sets \( M \), \( P \), and \( C \), the union is given by:
\[ |M \cup P \cup C| = |M| + |P| + |C| - |M \cap P| - |P \cap C| - |M \cap C| + |M \cap P \cap C| \]
Provided data:
Given \(|M \cup P \cup C| = 40\), we substitute these values to determine \(|M \cap P \cap C|\) (denoted as \(x\)):
\[ 40 = 20 + 25 + 16 - 11 - 15 - 10 + x \]
Solving for \(x\):
\[ x = 10 \]
Therefore, the maximum number of students who passed all three subjects is 10.