what happens if the 2 numbers that are different sum to a value > 7 or > 10?

Can these records that will be compared exist anywhere in the file or only next to each other in the file?