Find out the coefficient of rank correlation from the following data?

Find out the coefficient of rank correlation from the following data

Calculation of Rank Correlation :

sir can you please tell me this question is from which book