There are five numbers in a data set. They are 2, 3, 18, 20 and x, where x is one of the largest two number of the five. What value does x need to be so that the median of the five numbers equals the mean of the five numbers?