If you had 343, you would double the last digit to get six, and subtract that from 34 to get 28.
If you get an answer divisible by 7 (including zero), then the original number is divisible by
seven. If you don't know the new number's divisibility, you can apply the rule again