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:
5.1m questions
6.7m answers