If 24, x,and 6 form the first three terms of an arithmetic sequence, then which of the following is the value of x?