If the sum and product of the roots of the quadratic equation ax2−5x+c=0 are both equal to 10, then find the values of a and c.