To find the total number of students in the school, we need to consider all students learning French, German, and Spanish, and account for those learning multiple languages. This is a typical problem involving set theory and can be solved using the principle of inclusion-exclusion.
Let:
We are given:
First, note that students learning only German is already known: \(|G| - |F \cap G| - |G \cap S| + |F \cap G \cap S| = 20\).
Using the principle of inclusion-exclusion for three sets, the formula for the total number of students who learned at least one language is given by:
\(|F \cup G \cup S| = |F| + |G| + |S| - |F \cap G| - |G \cap S| - |F \cap S| + |F \cap G \cap S|\)
Substituting the known values:
\(x = 28 + 30 + 32 - 6 - 8 - 10 + y\)
Given 54 students learnt only one language:
\(54 = |F| + |G| + |S| - 2(|F \cap G| + |G \cap S| + |F \cap S|) + 3|F \cap G \cap S|\)
Rewriting and substituting gives us:
\(54 = 28 + 20 + (32 - 10 - 8) = 62 - y\)
This yields \(y = 2\) (students learning all three languages).
Substitute \(y = 2\) back in the total students equation:
\(x = 28 + 30 + 32 - 6 - 8 - 10 + 2 = 70\)
Therefore, the total number of students in the school is: 70.