# Cloudy with a chance of meatballs

I discovered that I can control the local weather, depending on what color shirt and hat I wear at a given location. My home country of Flanmanistan has hired me to go back and do drought and famine relief. I never know which combination of shirt and hat will deliver which weather at a new location, because each location has a different formula. So I wear a different shirt and hat combo each day, and I fill in a grid to keep track. For example, when I wore a green shirt and purple hat, the weather became cloudy. Tomorrow, I’ll finish the grid, but I can see the pattern already. What will be the weather when I wear a blue shirt and a white hat?

Hint 1: I ask that you use decimal math.

Hint 2: My choice of weather labels is not very important. "Rain" could be changed to "Showers", "Sardines" could be changed to "Chips", etc.

Update: Hint 3: The country name (my beloved Flanmanistan) and the concept of hats and shirts are not important. Look for a way to map each color combo to one of the five weather conditions. The process is fairly simple, once you know it. Notice that Yellow and Orange produce the same weather, so something about those two colors maps the same way.

$$\textbf{Weather Control Grid for Flanmanistan:}$$ $$\begin{array}{|c|c|c|c|c|} \hline \textbf{Shirt\downarrow Hat \rightarrow}&\textbf{Black}&\textbf{White}&\textbf{Purple}&\textbf{Gold}&\textbf{Silver} \\ \hline \textbf{Red}&Sun&Sun&Meatballs&Meatballs&Rain \\ \hline \textbf{Green}&Sardines&Sun&Cloudy&Meatballs&Rain \\ \hline \textbf{Blue}&Meatballs&?&Sardines&Sardines&Sun \\ \hline \textbf{Yellow}&Rain&Sardines&Sun&Cloudy&Meatballs \\ \hline \textbf{Orange}&Rain&Sardines&Sun&Cloudy&Meatballs \\ \hline \end{array}$$

CSV version:

Shirt Hat,Black,White,Purple,Gold,Silver
Red,Sun,Sun,Meatballs,Meatballs,Rain
Green,Sardines,Sun,Cloudy,Meatballs,Rain
Blue,Meatballs,?,Sardines,Sardines,Sun
Yellow,Rain,Sardines,Sun,Cloudy,Meatballs
Orange,Rain,Sardines,Sun,Cloudy,Meatballs


Another CSV version:

Shirt,Hat,Weather
Red,Black,Sun
Red,White,Sun
Red,Purple,Meatballs
Red,Gold,Meatballs
Red,Silver,Rain
Green,Black,Sardines
Green,White,Sun
Green,Purple,Cloudy
Green,Gold,Meatballs
Green,Silver,Rain
Blue,Black,Meatballs
Blue,White,?
Blue,Purple,Sardines
Blue,Gold,Sardines
Blue,Silver,Sun
Yellow,Black,Rain
Yellow,White,Sardines
Yellow,Purple,Sun
Yellow,Gold,Cloudy
Yellow,Silver,Meatballs
Orange,Black,Rain
Orange,White,Sardines
Orange,Purple,Sun
Orange,Gold,Cloudy
Orange,Silver,Meatballs

• What sort of weathers are meatballs and sardines? – JMP Jul 30 at 6:04
• @JonMarkPerry: You've not read the book or seen the film then? – Jaap Scherphuis Jul 30 at 6:13
• @JaapScherphuis; Frayed Knot, is it relevant to the answer? – JMP Jul 30 at 6:37
• @JonMarkPerry I wouldn't think so given the tags, but if it is then a knowledge tag would need to be added. – Jaap Scherphuis Jul 30 at 7:11
• @Conifers "Is it related to Galois finite field" Not as far as I know. I just read about Galois finite fields, and it doesn't seem to apply here. – FlanMan Jul 30 at 21:59