the mean of a set of numbers can be calculated by adding all values in the set and then dividing the sum by the number of values added.
So we have:
Therefore the mean is 4.
For the magazine set of data, we have 7 values, so the mean is:
Therefore the mean is 7.