The correct option is B 9
The identity (a+b)2=(a2+2ab+b2) represents a perfect square.
If we observe carefully we can see that x2+6x can be written in the form (a2+2ab+b2) by adding a constant.
x2+2(x)(3)+constant.
To make x2+6x a perfect square, divide the coefficient of x by 2 and add the square of the result to make this a perfect square.
Hence 62=3 and 32=9.
We should add 9 to make x2+6x a perfect square.