the simplist way to do this is to film person 1 - making sure they are only in the left part of the shot.. then film person 2, making sure there only in the right side of the shot (an easy way of doing this is using something as a refence -like a lampost) - always making sure there is no movment in the camera... then in the edit- overlay the to clips and crop one of them 50%- and thats it.. it gets harder when you want to have movment in the shot, from the camera or from the people...
hope that makes sense -cos im quite drunk