The correct option is B +5
Let x be the oxidation number of P in K4P2O7.
Since the overall charge on the complex is 0, the sum of oxidation states of all elements in it should be equal to 0.
Therefore, 4(+1)+2(x)+7(−2)=0.
4+2x−14=0
2x=10
x=+5
Hence, the oxidation number of P in K4P2O7 is +5.