Solving the selection-recombination equation: ancestral lines and dual processes