Calculate the coefficient of rank correlation from the following data

Calculation of Rank Correlation