Take 1/2 the coefficient of x and square it (40/2)2 =400
Rewrite the equation adding and subtracting 400, (x2+40x+400)+c-400 This can be written as (x+20)2 +c-400 from which you can find the roots (x+20)2=400-c by taking+- the square root of both sides and solve for x1, x2.
Hope this helps
Jim