The sum of two numbers x and y is 40. Write down an expression, in terms of x for the sum of the squares of the two numbers . Hence determine the minimum value of x^2 + y^2

x^2+y^2 = x^2 + (40-x)^2

now finish it off