\[x + y = 7;\ \ xy = 6\]
\[x^{2} + y^{2} =\]
\[= x^{2} + y^{2} + 2xy - 2xy =\]
\[= (x + y)^{2} - 2xy =\]
\[= 49 - 12 = 37\]