Step 1: Known Oxidation States
$\text{H}_2\text{SO}_3$ is sulphurous acid, where S is in the $+4$ state.
Step 2: Check H2S2O7
$\text{H}_2\text{S}_2\text{O}_7$ is oleum (pyrosulphuric acid) with two S atoms, each in the $+6$ state, as in $\text{H}_2\text{SO}_4$.
Step 3: Compare the options
The pair $+4$ and $+6$ matches option (B).
Final Answer:
Sulphur is in the +4 state in H2SO3 and in the +6 state in H2S2O7.
\[ \boxed{\text{(B) }+4\ \text{and}\ +6} \]