Freeman hit Mariner's combadge, so I think they just beamed up the person who's combadge was activated.At the start of the episode, it struck me as a little odd that when the captain says, "One to beam up," they somehow knew to beam up Mariner instead of Freeman. But I could imagine Freeman arranging that ahead of time with the transporter chief since Mariner was already in trouble.