Find the value of k for which both the quadratic equations x2+kx+64=0 and x2-8x+k=0 will have real roots.

kindly show the procedure to solve this question.

…..answer is 16