The mean of a set of n numbers is 28. If an extra number, 18, is included in the set, the mean becomes 26. Calculate the value of n.