find pair whose sum is 'x'