a)
For letters:
For numbers:
The number of passwords is:
b)
For the first and the last spots
Since we can repeat for the other spots:
1.6m questions
2.0m answers