The frequency distribution of weight in grams of the product of a given variety is given below. Calculate the arithmetic mean and median.