Solution: Using the principle of inclusion-exclusion for three sets \( M \), \( P \), and \( C \), we have:
\[ |M \cup P \cup C| = |M| + |P| + |C| - |M \cap P| - |P \cap C| - |M \cap C| + |M \cap P \cap C| \]
Given:
Since \(|M \cup P \cup C| = 40\), substitute the values and solve for \(|M \cap P \cap C|\):
\[ 40 = 20 + 25 + 16 - 11 - 15 - 10 + x \]
\[ x = 10 \]
Thus, the maximum number of students who passed in all three subjects is 10.