In a five-sided figure, the vertices are labeled and . The numbers and are assigned to these vertices, although not necessarily in this order. The sums of the numbers at the ends of the line segments and form an arithmetic sequence, although not necessarily in this order. What is the middle term of the sequence?
26
27
28
29
30