If α and β are the roots of the equation x2−8x+p=0 such that α2+β2=40, find the value of p.
α, β are the roots of the equation x2 + 14x + 10 = 0. Find the value of (α2 + β2).