Hello, I know my answer is wrong but I can't tell what I am doing wrong
How many possibilities are there for a 4-digit code that must either start with 0 or end with 2.
My answer
If it starts with 0:
1*10*10*9
If it ends with 2:
9*10* 10*1
Addition of the 2 possibilities: 900+900
That is 1800 possibilities.
The correct answer
If it ends with 2:
10*10*10*1
If it starts with 0:
1*10*10*10
Code which ends with 2 and starts with 0:
1*10*10*1
Addition of 2 possibilities minus the possibilities where the code ends with 2 and starts 0:
1000+1000-100 That is 1900 possibilities
How many possibilities are there for a 4-digit code that must either start with 0 or end with 2.
My answer
If it starts with 0:
1*10*10*9
If it ends with 2:
9*10* 10*1
Addition of the 2 possibilities: 900+900
That is 1800 possibilities.
The correct answer
If it ends with 2:
10*10*10*1
If it starts with 0:
1*10*10*10
Code which ends with 2 and starts with 0:
1*10*10*1
Addition of 2 possibilities minus the possibilities where the code ends with 2 and starts 0:
1000+1000-100 That is 1900 possibilities