If a + b = 7 and a^3 + b^3 = 42, what is the value of the sum a^2 + b^2? Express your answer as a common fraction.