I don’t know how it is done, but if it were me, I would have one actor 10 feet away from the other one being filmed and projected onto the screen, whilst the other one is speaking to the screen. That way the conversation is naturally timed and there is need for extensive sound editing. Then again, I know nothing of the film industry.