When the mean, median, and mode of the list $8,1,5,1,3,1,x$ are arranged in increasing order, they form a non-constant arithmetic progression. What is the sum of all possible real values of $x$?
The mode is $1$, the mean is $\frac{19+x}7$, and the median is $1$ if $x\le1$ (impossible: it equals the mode), $x$ if $1<x<3$, and $3$ if $x\ge3$.
Median $3$ ($x\ge3$): the mean is at least $\frac{22}7>3$, so the order is $1,3,\text{mean}$ and $\frac{19+x}7=5$, $x=16$. Median $x$ ($1<x<3$): the order $1,x,\text{mean}$ gives $2x-1=\frac{19+x}7$, $x=2$ (mean $3$); the order $1,\text{mean},x$ gives $\frac{2(19+x)}7=1+x$, $x=\frac{31}5>3$, impossible.