Write the following in the form x+a2+b

Question 1:

x210x5
x5230

Question 2:

x2+8x5
x+4221

Question 3:

x2+16x8
x+8272

Question 4:

x210x+7
x5218

Question 5:

x212x+6
x6230

Question 6:

x216x7
x8271