Look at the first set of numbers, 1, a+b, a, which of these three numbers can correspond to the last set of numbers? First of all, 1 is not equal to 0, and b/a appears in other numbers, which means that a can't be 0, so only a+b=0 holds.
Because a+b=0 holds, the number of two groups is only 1. A needs to find the corresponding relationship between b/a and B. Because a+b=0 and a=-b, b/a=- 1 becomes 1. The correspondence between A and-1 and B can only be a=- 1 and b= 1.
So a+b=0 and ab=- 1.
(a+b)^2008+(ab)^2009-(a+b-ab)+x^2
=0- 1-(0+ 1)+4=2