The code is the amount of letters are there in the numbers. Example: if the guard said "fourteen" people might think its seven. But, the answer is eight because there are 8 letters in fourteen.
He threw a sharp boomerang out the window. Because of gravity, the boomerang goes back to Winston and hitted him in the head.