To calculate the mean of a set of data, add up all the data and divide it by the amount of data, as following:
Therefore, the mean is 4