Mass number and atomic number in nuclear reactions are conserved.
The nuclear reaction is as follows. 7N14+2He4⟶8O17+qXP
Conservation of mass number gives p=14+4−17=1
Conservation of atomic number gives q=7+2−8=1
Hence, particle is a proton 1H1.