We begin by observing that the unknown appears inside a square-root, so it is convenient to set t=x.
Because x≥0, we automatically have t≥0. With this substitution the given condition
2∣x−3∣+x(x−6)+6=0
becomes a purely quadratic-absolute value equation in t:
2∣t−3∣+t(t−6)+6=0.
Simplifying the second term first, we write
t(t−6)=t2−6t.
Hence the complete equation is
2∣t−3∣+t2−6t+6=0.−(1)
The absolute value necessitates splitting into two cases.
Case 1: t≥3. Here ∣t−3∣=t−3. Substituting into (1) we get
2(t−3)+t2−6t+6=0.
Expanding the brackets,
2t−6+t2−6t+6=0.
Combining like terms,
t2−4t=0.
Factoring,
t(t−4)=0.
This quadratic yields two possible roots:
t=0ort=4.
However, in the present case we imposed t≥3, so only t=4 survives. Translating back,
x=t2=42=16.
Case 2: 0≤t<3. Here ∣t−3∣=3−t. Substituting into (1) we have
2(3−t)+t2−6t+6=0.
Expanding,
6−2t+t2−6t+6=0.
Combining constants and like terms,
t2−8t+12=0.
To solve the quadratic, we use the standard formula t=2a−b±b2−4ac with a=1,b=−8,c=12. This gives
t=28±64−48=28±16=28±4.
So,
t=6ort=2.
But the current case demands t<3, hence only t=2 is admissible. Converting back to x gives
x=t2=22=4.
Combining both cases, the set S is
S={4,16}.
This set clearly has exactly two distinct non-negative elements.
Hence, the correct answer is Option D.