In the five-sided star shown, the letters $A$, $B$, $C$, $D$, $E$ are replaced by $1$, $2$, $4$, $6$, $7$ in some order, so that the sums of the numbers at the ends of $\overline{AB}$, $\overline{BC}$, $\overline{CD}$, $\overline{DE}$, $\overline{EA}$ form an arithmetic sequence (in some order). What is the middle term of the sequence?