Which of the following functions has a line of symmetry of x = 2?
y = (x - 2)2 + 5
y = (x + 2)2 - 5
y = (x - 5)2 + 2
y = (x + 5)2 - 2