Circuit contains 4-bit led indicator and single digit display.
Each row is binary number.
For example:
14 = 1110; 10 = 1010;
14-10 = 4; 4 = 0100;
For that circuit it does not really matter which number goes first, because it finds the difference between two numbers. Display shows value in hexidecimal form.