For (b) (assuming no tied ranks). So sort the first row. Add a rank column. Then rank the second row. Then calculate the difference between the two ranks. Then square this difference. Add up the column of squared differences. This should allow you to calculate . We know .
For (a) first calculate the averages of the two rows . Then calculate the standard deviations. Then calculate the covariance. So the coefficient is .