rand al'thor, 2012rcampion, Xenocacia, Paul Evans have answers correctly,
here I give another way to answer correctly, without making Mr. Smith thinks too long. Even a kid can answer the questions.
I will create 3 pairs of list
First pair :
1A : 2,3,5,6,8,9,11,12,14,15,17,18,20,21,23,24,26,27
1B : 2,5,8,11,14,17,20,23,26
Then ask Mr. Smith : If I take a random list, Does the number in the list ?
If the answer is Yes then, write number 2 in first paper.
(because the number appears in both list)
If the answer is No then, write number 0 in first paper.
(because the number do not appears in both list)
If the answer is I do not know then, write number 1 in first paper.
(because the number only appears in one list)
then
2nd pair :
2A : 4,5,6,7,8,9,13,14,15,16,17,18,22,23,24,25,26,27
2B : 4,5,6,13,14,15,23,24,25
Then ask Mr. Smith : If I take a random list, Does the number in the list ?
If the answer is Yes then, write number 2 in the 2nd paper.
If the answer is No then, write number 0 in the 2nd paper.
If the answer is I do not know then, write number 1 in the 2nd paper.
then
3rd pair :
3A : 10 to 27
3B : 10 to 18
Then ask Mr. Smith : If I take a random list, Does the number in the list ?
If the answer is Yes then, write number 2 in the 3rd paper.
If the answer is No then, write number 0 in the 3rd paper.
If the answer is I do not know then, write number 1 in the 3rd paper.
then
put the number in the order 3rd 2nd 1st as base 3 number, than convert it into base 10 number, do not forget to add 1. The result is Mr. Smith number.