War has broken out in the kingdom. The king's castle is guarded pretty heavily, by guards with instructions to kill anyone who can't produce the correct password.

Unbeknownst to the guards, the beggar near the main gate is in fact an enemy spy. He listens intently as the first knight approaches. "Six!", the guard calls out. "Three," answers the knight. He is allowed through. "Aha," the spy thinks to himself.

But he needs to be sure. He sees another knight approaching and listens in on his exchange with the guard. "Twelve!" "Six!"

The spy leaves, and returns dressed as a knight. "Eighteen!" The spy answers "nine" and is killed on the spot by the guards.

Why?

• SPOILER ALERT: pastebin.com/raw.php?i=wCTZsDsW – revelationz Nov 10 '14 at 11:42
• Possible duplicate of What's the Password, again? – Adit Kirtani Jul 9 '16 at 15:36
• @AditKirtani other than both questions being about passwords, they're different questions with different solutions. Have you even read them both? – SQB Jul 9 '16 at 16:08

The kingdom is guarded from foreigners, therefore the password is based on native language (which is of course English:):) ).

You just should tell number of letters in the word, that is told to you. And "Eighteen" has 8 letters, not 9.

Hint:

The division is simply a ruse.

The guards say the number of letters in the word.
S I X
1 2 3
T W E L V E
1 2 3 4 5 6
So in the spy's case:
N I N E T E E N
1 2 3 4 5 6 7 8

RIP enemy spy.

• Welcome to Puzzling! (Take the Tour!) How does your answer add to the identical ones already given? You should always look at existing answers before providing one of your own, to ensure you are not just adding a duplicate. Also, we generally put Spoiler tags around answers to avoid revealing the answers to someone who wants to try to solve the puzzle on their own. – Rubio Jun 30 '17 at 3:39
• oh sorry I am new here – Ditto Jul 1 '17 at 0:56