Monte Carlo Simulation of Joint Transport of Neutrons and Photons