Calculate the Oxidation number of Sulphur in S2O8^2- ion

Calculate the Oxidation number of Sulphur in S2O82- ion.

In S2O8, there is one peroxy linkage. Hence two of the eight oxygen atoms have -1 oxidation state.
Hence,
2x + 6(-2)+2(-1)=-2
2x = 14-2= 12
x =+6