String Troubles

We are posed with this problem.

An office furniture company sells furniture in three colors: red, black and green. Every item in their inventory system has a 5-character code.
a. The first three characters are always used to represent the furniture type. If the first three characters are T47 then the furniture is a table, if the first three characters are C47 then the item is a chair
b. The last two characters are always used to represent color. If an item is red, the last two characters are
I feel like I am way off with what I have and had something prior to this that seemed like it could work.
Topic archived. No new replies allowed.