--- Quote Start ---
Similarly to the above remark, seems like wanted to create 1 state for each possible value, which is a real waste if compared to store the sum within 3 unsigned variables, 1 variable per product. In addition, it also would be better you drew a short draft of your design.
--- Quote End ---
--- Quote Start ---
I agree with andre_teprom making a drawing of your design helps in understanding what you are doing. Once you have drawn your state machine you can look at states that are identical and have paths to the same destination under the same conditions. These can be simplified into one state. If you have your drawing, then write the code. It also helps in spotting dead ends or unwanted loops.
--- Quote End ---
I thought this was the best way... Can u guys help me using a more efficient way?