Finding the mean using tables