Write the quadratic function in vertex form.
y = x2 + 18x + 71
y = x2 + 18x + 71