Gray color means that these numbers or signs are not in the equation.
But not as easy as it sounds! And green means the letter is both in the word and in the right position.
So a simple heuristic, similar to how a human might play Nerdle, is to keep guessing a random word from the set of words that are still possible until you find the right one.