Algebra Level 3

Find the sum of all values of $$x$$ for which the roots $$g$$ and $$h$$ of the equation

$$t^{2}-8t+x=0$$

satisfy the condition that

$$g^{2}+h^{2}=4$$