The final product expected is[using HI/RedP]
Red Phosphorous removes all the oxygen atoms, It is an example of reduction reaction