One way to do this is to combine A and B as the zeroes of a quadratic expression.
(x-A)(x-B)=x²-x(A+B)+AB.
So each set of A, B values will generate a unique quadratic expression.
Example: {2,7} and {3,5} generate x²-9x+14 and x²-8x+15. A and B can be any numbers, positive or negative, rational or irrational.