Let $a$, $b$, $c$ be positive real numbers, with $a + b + 2c = 10$, $c = d$, and $a^2 + b^2 + 2c^2 = 30$. The largest possible value of $c$ can be expressed as $\frac{k + \sqrt{w}}{f}$ in simplified and reduced radical form where $k$, $w$, and $f$ are positive integers. Determine the value of $(k + w + f)$
This is a problem from an old high school math contest(20 questions, 50 minutes), so there is probably some kind of clever algebraic/geometric trick involved. The answer key gives an answer 12, but does not give a solution.
I have substituted $d$ for $c$ and then substituted $c$ into the second equation, though that only gives me an equation in terms of $a$ and $b$. I have also tried completing the square for $a$ and $b$ in the first equation and using that in the second equation, but that always yields extra ab terms.
My intuition tells me I want to minimize $a$ & $b$, but setting them both be 0 does not satisfy the constraints of the two equations. Working algebraically only yields more equations, and since there are 3 variables in two equations, it's difficult to find the maximum of $c$ with non-calculus techniques.
The contest's topic is precalculus, which is why I decided against using Lagrange multipliers(if possible), but I am open to solutions involving more advanced mathematics for my own curiosity's sake.
Addendum added to correct an analytical flaw in my answer.
Alternative approach.
Constraints (since $c = d$).
See the Addendum, for an explanation of why I am able to infer that the upper bound for $c$ is
$$\frac{5 + \sqrt{5}}{2}. \tag1 $$
The value in (1) above is shown at (4), in the Addendum. It then remains to show that this value is achievable.
That is, I need for
$$\frac{a + b}{2} ~~\text{to equal}~~$$
$$(5 - c) = 5 - \left[\frac{5 + \sqrt{5}}{2}\right] = \frac{5 - \sqrt{5}}{2}. \tag2 $$
I also need for
$$\frac{a^2 + b^2}{2} ~~\text{to equal}~~$$
$$\left(15 - c^2\right) = 15 - \left[\frac{15 + 5\sqrt{5}}{2}\right] = \frac{15 - 5\sqrt{2}}{2}. \tag3 $$
In the pre-Calculus world, you can reason that
when the sum $(a + b)$ is set, and you wish to minimize the sum $(a^2 + b^2)$, you can do so by setting $a = b$.
This may be reasoned by presuming that
$a = k + r, b = k - r \implies (a + b) = 2k,$ some set value. Then
$a^2 + b^2 = k^2 + r^2,$ which is minimized by setting $r = 0$.
Therefore, a reasonable first try at achieving constraints (2) and (3) above is to explore what happens if
$~\displaystyle a = b = \frac{5 - \sqrt{5}}{2},$
which satisfies constraint (2) above.
Then, $~\displaystyle \frac{a^2 + b^2}{2} = a^2 = \frac{25 + 5 - 10\sqrt{5}}{4} = \frac{15 - 5\sqrt{5}}{2},$
which satisfies constraint (3) above.
Therefore, the value of
$$ c = \frac{5 + \sqrt{5}}{2}$$
is achievable, which implies that
$k + w + f = 5 + 5 + 2.$
Addendum
Originally, I reasoned that :
Thanks to dxiv for commenting that the above analysis is invalid. That is, based on the above analysis, you could have that
$\displaystyle c > \frac{5 + \sqrt{5}}{2}$,
$(a + b) < \left(5 - \sqrt{5}\right),$
and $a \neq b.$
$\underline{\text{Corrected Analysis}}:$
I will use the comment of dxiv (which follows my answer) as a guide:
For any $0 < a,b$, you have that
$a^2 - 2ab + b^2 = (a - b)^2 \geq 0 \implies a^2 + b^2 \geq 2ab.$
Therefore,
$\displaystyle \frac{a^2 + b^2}{2} \geq \frac{a^2 + 2ab + b^2}{4} \implies \sqrt{\frac{a^2 + b^2}{2}} \geq \frac{a + b}{2}.$
Since the constraints imply that
$\displaystyle \frac{a + b}{2} = (5 - c)$
and $~\displaystyle \frac{a^2 + b^2}{2} = (15 - c^2) \implies $
$~\displaystyle \sqrt{15 - c^2} = \sqrt{\frac{a^2 + b^2}{2}} \geq \frac{a + b}{2} = (5 - c)$
You have that
$$(15 - c^2) \geq (5 - c)^2 = 25 - 10c + c^2 \implies $$
$$2c^2 - 10c + 10 \leq 0 \implies c^2 - 5c + 5 \leq 0.$$
This implies that
$$\left(c - \frac{5}{2}\right)^2 - \frac{25}{4} + 5 \leq 0.$$
This implies that
$$\left(c - \frac{5}{2}\right)^2 - \frac{5}{4} \leq 0.$$
This implies that
$$\left(c - \frac{5}{2}\right) \leq \sqrt{\frac{5}{4}} = \frac{\sqrt{5}}{2}.$$
This implies that $c$ can be no bigger than
$$\frac{5}{2} + \frac{\sqrt{5}}{2}. \tag4 $$