To Generate The Correct Password
Read here what happened?
The trick for the password was different from that the young man was thinking.
The password was the number of letters in the spelling of number that guard was saying.
TWELVE - SIX
SIX -THREE
Hence for TEN the password should have been THREE not half of TEN!
This was the code language designed for the entry into the bar.