During a class, the teacher defines a function as follows:
$$ f(x) = x^2 - 4x + 6 $$
For this function, find the value of $$ f(x) $$ when $$ f(x) = 5 $$ by solving the equation. What is the corresponding value of $$ x $$? Please input your answer in decimal form.