How it works
Look at the ones first: can you take them away? If there are enough, just take them away.
If there are too few ones, borrow a ten from the row above. One bead steps down from the tens row and brings ten ones.
Then take the rest away, and move on to the tens.
Carrying goes up and borrowing goes down. They are the same trade, run the other way round.