A stable marriage problem