Use the principle of square roots,

(x-2)^2=25

then x-2 = ± √25

x = 2 ± 5
x = 7 or x = -3