This is LaTeX code:
[latex]
S_{XX}=1^2*6+2^2*15+3^2*9-30*2,1^2=14,7\\ S_{YY}=1^2*22+2^2*4-30*1=8\\ S_{XY}=4*(1*0)+2*(1*1)+15*(2*1)+5*(3*1)+4*(3*2)-30*2,1=8
[/latex]