Non-decimal arithmetic is relatively straightforward.
Addition in bases 2 and 16 is similar to addition in base 10. There are some rules for the addition that must be followed.
Subtraction is less straightforward but can be managed by using some properties of binary numbers.
Addition and subtraction of hexadecimal numbers will not be covered here, bit you should note that these can be easily managed by first converting the hex numbers to binary.
Next: Binary Addition