Which VS What

Here is my best attempt at answering this.

When you are faced with several KNOWN possibilities, (blue of green or yellow) use “which”.

“Which color should I select?”

If the choices are not known, or quite numerous, use “what”.

“What are the chemicals that are stored here?”