In sodium tetrathionate ($Na_2S_4O_6$), two of the sulfur atoms have an oxidation state of +5, and the two central sulfur atoms have an oxidation state of 0. The average oxidation state is (2*5 + 2*0)/4 = 2.5.