Learning to make a long-distance matchmaking work