Calculate Karl Pearson's coefficient of correlation

Calculate Karl Pearson’s coefficient of correlation between X and Y from the following data