If a (alpha) and b (beta) are the zeroes of f(x)= x^2-6x+k, then find the value of k if a^2+b^2=40