Apply addition and subtraction rules