The Stable Pairing Problem