If the sum of the roots of a quadratic equation is 5 and the product of the roots is also 5, then the equation can be x2−5x+5=0.
For a quadratic equation ax2+bx+c=0,
When sum and product of roots are given, then we can form the QE by:
x2 - (sum of roots)x + product of roots = 0
Hence, substituting we get
x2−5x+5=0