Say the hidden word is CABIN and you guessed CRANE:
- C is green: right letter, right place. Keep it there.
- A and N are gold: those letters ARE in the
word, but somewhere else. Move them.
- R and E are gray: not in the word at all.
Forget them.
From that you know it starts with C and contains an A and an
N. CABIN fits.