If a + b + c = 9 and ab + bc + ca = 23, find the value of a^2 + b^2 + c^2.