=vlookup(a2,sheet 1! a:b,2,false)+vlookup(a2,sheet2! A: B, 2, false)
Match it and add it up.
Matching results will automatically compare the results in any order, regardless of the order of the original table.