The numbers 4,6 and 8 are the frequencies of (x+2),x and (x−1) respectively . If their arithmetic mean is 8, the value of x is