1-9 = 9 numbers
so you have 9 *9 *9 = 729 different codes
First you do distributive property.
2c + 8 = 0
Then subtract 8 with 0
2c = -8
Then divide -8/2
I hope this helps you