selects the mate from mpairs or wpairs

return(pairs[person]);